6 ms·
I just tried this in javascript (via Firebug) out of curiosity and it's the same problem. 0.1 + 0.2 = 0.30000000000000004
by SingAlong 16y ago
I just tried this in javascript (via Firebug) out of curiosity and it's the same problem.
0.1 + 0.2 = 0.30000000000000004
- masklinn 16y ago> and it's the same problem. it's not a problem.
- ciupicri 16y agoIt's not a bug, it's a feature or better said it's a known issue which should be taken into account when writing a program that uses floating point numbers.
- pavel_lishin 16y agoI'd like to submit a bug: when I stare directly at the sun, my eyes begin to hurt. Also, there's this weird force pulling me towards the Earth, what's that all about?
- aidenn0 16y agoI consider it a bug in the specification that all numbers are floating-point in javascript.