MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xvujkr/sexypointoverflow/
r/ProgrammerHumor • u/redditRezzr • 7d ago
13 comments sorted by
29
Isn't this the case with most languages and not specific to javascript?
4 u/codingTheBugs 6d ago Yes but putting it on JavaScript gets more upvotes 1 u/redditRezzr 7d ago I think everyone deals with it, but, this one time, I was doing math, and all I had was JavaScript. 1 u/ruiz_julie_728 3d ago BigInt keeps integer addition and multiplication exact; decimal fractions still need another representation. 2 u/rosuav 6d ago It's the definition of IEEE 754. People seem to accept that computers work in binary, but then act surprised when computers work in binary.
4
Yes but putting it on JavaScript gets more upvotes
1
I think everyone deals with it, but, this one time, I was doing math, and all I had was JavaScript.
1 u/ruiz_julie_728 3d ago BigInt keeps integer addition and multiplication exact; decimal fractions still need another representation.
BigInt keeps integer addition and multiplication exact; decimal fractions still need another representation.
2
It's the definition of IEEE 754. People seem to accept that computers work in binary, but then act surprised when computers work in binary.
Well that's the correct answer
-3 u/redditRezzr 7d ago When being right feels so wrong.
-3
When being right feels so wrong.
16
JavaScript has its issues, but I don't think it's fair to blame it for floating-point arithmetic.
20
With JavaScript I would have expected "0.10.2"
This is art. Thank you.
3
Desmos: I am a being of pure energy and no weakness!
not a Javascript issue sire
Actual skill issue. Go ask Claude why
29
u/click-to-reveal 7d ago
Isn't this the case with most languages and not specific to javascript?