From: useful-soft at yandex dot ru
Operating system: Debian 7 64x
PHP version: 5.4.27
Package: Math related
Bug Type: Bug
Bug description:Return incorrect values.
Description:
------------
Tested in PHP 5.4.27 and PHP 5.4.15
Return incorrect values.
Test script:
---------------
echo number_format( 1.7976931348623157e+308, 2 );
// Result:
179,769,313,486,231,570,814,527,423,731,704,356,798,070,567,525,844,996,598,917,476,803,157,260,780,028,538,760,589,558,632,766,878,171,540,458,953,514,382,464,234,321,326,889,464,182,768,467,546,703,537,516,986,049,910,576,551,282,076,245,490,090,389,328,944,075,868,508,455,133,942,304,583,236,903,222,948,165,808,559,332,123,348,274,797,826,204,144,723,168,738,177,180,919,299,881,250,404,026,184,124,858,368.00
echo round( 1.7976931348623157e+308, 2 );
// Result: 1.7976931348623157e+308
--
Edit bug report at https://bugs.php.net/bug.php?id=67163&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67163&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67163&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67163&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67163&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67163&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67163&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67163&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67163&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67163&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67163&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67163&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67163&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67163&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67163&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67163&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67163&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67163&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67163&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67163&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67163&r=mysqlcfg