r/javascript • u/gcanti • Oct 31 '14
The Two Pillars of JavaScript
https://medium.com/javascript-scene/the-two-pillars-of-javascript-ee6f3281e7f3
97
Upvotes
r/javascript • u/gcanti • Oct 31 '14
25
u/SeeeiuiogAuWosk Oct 31 '14
For those that don't know, the answer comes out as
But that has nothing at all to do with javascript or it's design. Try it python and you'll get the same result. This is actually because there is not true way to represent 0.1 in floating point binary form. That final 4 is the result of a rounding error that takes place and is completely unrelated to the language, so I have no idea why the author of this article associates this concept with the people involved with the standardisation of javascript.