From: thbley at gmail dot com Operating system: WinVista PHP version: 5.2.5 PHP Bug Type: *General Issues Bug description: Math calculation problem with 1.19 - 1
Description: ------------ There seems to be a problem with the numeric calculation: if ( (1.19 - 1) == 0.19 ) { echo "@@"; } The expression "(1.19 - 1) == 0.19" does not evaluate to true. My environments (problem exists on both platforms): WinVista: PHP 5.25 Debian: 5.2.0-8+etch10 Reproduce code: --------------- if ( (1.19 - 1) == 0.19 ) { echo "@@"; } Expected result: ---------------- output: @@ Actual result: -------------- output: <nothing> -- Edit bug report at http://bugs.php.net/?id=44405&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44405&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44405&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44405&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44405&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44405&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44405&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44405&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44405&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44405&r=support Expected behavior: http://bugs.php.net/fix.php?id=44405&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44405&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44405&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44405&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44405&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44405&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44405&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44405&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44405&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44405&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44405&r=mysqlcfg