ID: 41240 Updated by: [EMAIL PROTECTED] Reported By: webmaster at cashoclic dot fr -Status: Open +Status: Bogus Bug Type: *Math Functions Operating System: windowsxp PHP Version: 5.2.1 New Comment:
Floating point values have a limited precision. Hence a value might not have the same string representation after any processing. That also includes writing a floating point value in your script and directly printing it without any mathematical operations. If you would like to know more about "floats" and what IEEE 754 is read this: http://docs.sun.com/source/806-3568/ncg_goldberg.html Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2007-04-30 11:50:10] webmaster at cashoclic dot fr Description: ------------ 100-99.99=0.0100005 Here is the bug i don't understand why Reproduce code: --------------- echo 100-99.99; Expected result: ---------------- 0.01 Actual result: -------------- 0.0100005 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41240&edit=1