ID: 9411
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Regular Expressions
Assigned To: 
Comments:

This is normal floating point math behavior

Previous Comments:
---------------------------------------------------------------------------

[2001-02-22 15:45:55] [EMAIL PROTECTED]
Hi I am not sure if I have found a bug - what do you think.......?

Consider this:

$var1 = -0.32 + (0.1*3.2)

This should give var1 the value 0, instead it gives

5.5511151231258E-17 

Interestingly if you increase -0.33 and 3.3 respectively it gives the correct answer. 
Werid!

Rob Burne

[EMAIL PROTECTED]


---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9411&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to