top | item 43883864 (no title) aweiland | 10 months ago What is 0.1 + 0.2 in JavaScript. I'll give you a hint, it's not 0.3. Is that fine? discuss order hn newest viraptor|10 months ago That's not a JavaScript issue. It's the same for almost any language where you don't use some bignum type/library. This is something all developers should be extremely aware of. baq|10 months ago https://en.m.wikipedia.org/wiki/IEEE_754To answer your question directly - yes, it’s fine, it’s actually expected behavior.
viraptor|10 months ago That's not a JavaScript issue. It's the same for almost any language where you don't use some bignum type/library. This is something all developers should be extremely aware of.
baq|10 months ago https://en.m.wikipedia.org/wiki/IEEE_754To answer your question directly - yes, it’s fine, it’s actually expected behavior.
viraptor|10 months ago
baq|10 months ago
To answer your question directly - yes, it’s fine, it’s actually expected behavior.