Re:Be careful with JS numbers
by CamperBob2 on Sunday January 13, 2013 @04:34PM
(#5051941)
C/C++:
Here, printf() is doing the necessary rounding to hide the fact that 8.2 isn't exactly representable. It's interesting that other languages don't do something similar when outputting a float to text.
[ Parent
| on HN ]