From: gerald dot hoch at net-man dot at Operating system: win32 PHP version: 5.1.1 PHP Bug Type: Math related Bug description: Wrong result from round()
Description: ------------ I have some troubles with following round() function. I think the operation +1 produces the problem. Reproduce code: --------------- var_dump(round(65536.335,2)); var_dump(round(65535.335 + 1,2)); Expected result: ---------------- float(65536.34) float(65536.34) Actual result: -------------- float(65536.34) float(65536.33) -- Edit bug report at http://bugs.php.net/?id=35667&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35667&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35667&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35667&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35667&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35667&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35667&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35667&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35667&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35667&r=support Expected behavior: http://bugs.php.net/fix.php?id=35667&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35667&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35667&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35667&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35667&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35667&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35667&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35667&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35667&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35667&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35667&r=mysqlcfg
