From: rogergg at gmail dot com Operating system: linux/windows PHP version: 5.1.4 PHP Bug Type: *Compile Issues Bug description: equation result error
Description: ------------ the result for $a is 40 exactly. you can check it but i donk know why the if choosed that it is different. the problem is with the result that this take from the equation. if you print the result this show 40 but if you compare this with 40 say that is different thanks for all Reproduce code: --------------- <? $a=((1899-1139.4)*100)/1899; if($a==40) echo "is good $a"; else echo"is bad $a"; ?> Expected result: ---------------- is good 40 Actual result: -------------- is bad 40 -- Edit bug report at http://bugs.php.net/?id=38300&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38300&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38300&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38300&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38300&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38300&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38300&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38300&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38300&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38300&r=support Expected behavior: http://bugs.php.net/fix.php?id=38300&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38300&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38300&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38300&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38300&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38300&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38300&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38300&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38300&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38300&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38300&r=mysqlcfg