From: bnieuwen at hio dot hen dot nl Operating system: linux PHP version: 4.2.3 PHP Bug Type: Math related Bug description: sum of values results in unexpected value
I have a problem summing values. The very simple script <? echo "Total = " . (10.00 - 10.01); ?> produces: Total = -0.0099999999999998 I expected the following result: Total = -0,01 What's happening?? -- Edit bug report at http://bugs.php.net/?id=22428&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22428&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22428&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22428&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22428&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22428&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22428&r=support Expected behavior: http://bugs.php.net/fix.php?id=22428&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22428&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22428&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22428&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22428&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22428&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22428&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22428&r=gnused