|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-29 14:49 UTC] php at mouken dot 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
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.