Bug #14756: pow(0,[broken power]) gives wrong result
| From: | php at mouken dot com | Date: | Sat, 29 Dec 2001 19:49:43 +0000 |
| Subject: | Bug #14756: pow(0,[broken power]) gives wrong result | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-75287@lists.php.net to get a copy of this message | ||
From: php@mouken.com
Operating system: Linux (Debian 2.2)
PHP version: 4.1.1
PHP Bug Type: Math related
Bug description: pow(0,[broken power]) gives wrong result
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 bug report at: http://bugs.php.net/?id=14756&edit=1