#41108 [Opn->Fbk]: pow() doesn't handle negative exponents
| From: | tony2001@php.net | Date: | Tue, 17 Apr 2007 08:27:43 +0000 |
| Subject: | #41108 [Opn->Fbk]: pow() doesn't handle negative exponents | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111586@lists.php.net to get a copy of this message | ||
ID: 41108
Updated by: tony2001@php.net
Reported By: jack dot nerad at comcast dot net
-Status: Open
+Status: Feedback
Bug Type: Feature/Change Request
PHP Version: 6CVS-2007-04-17 (CVS)
New Comment:
What are you talking about?
# php -r 'var_dump(pow(2,-2));'
float(0.25)
Previous Comments:
------------------------------------------------------------------------
[2007-04-17 01:37:39] jack dot nerad at comcast dot net
Description:
------------
It is a sin that PHP cannot handle negative exponents. Every other
respectable language that has half the vocabulary that PHP has can
handle negative exponents. Heck, even the windows calculator can handle
negative exponents. Please. Mature and refine the language to include
this ability.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41108&edit=1