Bug #14756 Updated: pow(0,[broken power]) gives wrong result
| From: | derick@php.net | Date: | Thu, 10 Jan 2002 22:20:34 +0000 |
| Subject: | Bug #14756 Updated: pow(0,[broken power]) gives wrong result | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76539@lists.php.net to get a copy of this message | ||
ID: 14756
Updated by: derick
Reported By: php@mouken.com
Old Status: Open
Status: Closed
Bug Type: Math related
Operating System: Linux (Debian 2.2)
PHP Version: 4.1.1
New Comment:
This is fixed in CVS already
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-01-10 13:31:09] php@mouken.com
pow() returns incorrect results when raising zero to a "broken power".
Example:
pow(0,0.5) ("the square root of zero") returns NAN. It should return
zero.
This was introduced sometime after 4.0.6. Perhaps it is related to the
fix for bug #14544.
------------------------------------------------------------------------
[2001-12-29 14:49:43] php@mouken.com
The pow() function returns incorrect results when raising zero to a
"broken power".
pow(0,0.5) ("the square root of zero"), for example, returns NAN. It
should return zero.
This, is new since 4.0.6. Perhaps it is related to the fix for bug
#14544.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14756&edit=1