ID: 37554 Updated by: [EMAIL PROTECTED] Reported By: hsunke at muenster dot de -Status: Open +Status: Bogus Bug Type: Math related Operating System: Debian Linux PHP Version: 5.1.4 New Comment:
Might be funny... but it's still the same problem. Previous Comments: ------------------------------------------------------------------------ [2006-05-22 22:29:15] hsunke at muenster dot de Description: ------------ I know about "unpredictable" issues with floatingpoint calculations, but this one is quite funny: ... echo intval(100*(27/100)); //output: 27 echo intval(100*(28/100)); //output: 28 echo intval(100*(29/100)); //output: 28 echo intval(100*(30/100)); //output: 30 echo intval(100*(31/100)); //output: 31 ... Reproduce code: --------------- echo intval(100*(29/100)); Expected result: ---------------- 29 Actual result: -------------- 28 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37554&edit=1