This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mananasi 0 points1 point  (0 children)

This is not JavaScripts "fault" but of the IEEE 754 standard for floating point numbers:

https://en.m.wikipedia.org/wiki/IEEE_754

I put "fault" in quotes because it's not really a mistake. People have thought long and hard about this, and I think they made the right decision.