Status: New
Owner: ----

New issue 3372 by [email protected]: Addidtion and subtraction of floating point numbers is slightly out
http://code.google.com/p/v8/issues/detail?id=3372

As per the attached screengrab.

Having assigned a variable a floating point value (var x = 3.97) and then attempting to perform addition or subtraction on that variable (either x = x + 2 OR x += 2) x is given the value 5.9700000000001. Shouldn't this just be 5.97? I could be overlooking something, but this is currently messing with my jqPlot labels. I can address it currently with a combination of parseFloat() and toFixed() but it seems a little silly.

Attachments:
        Capture.PNG  9.6 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to