ID: 14756
User updated by: [EMAIL PROTECTED]
Old Summary: pow(0,[broken power]) gives wrong result
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Math related
Operating System: Linux (Debian 2.2)
PHP Version: 4.1.1
New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2001-12-29 14:49:43] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to