r/ProgrammerHumor • • 7d ago

Meme sexyPointOverFlow

0 Upvotes

13 comments sorted by

29

u/click-to-reveal 7d ago

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

u/BananaSupremeMaster 7d ago

Well that's the correct answer

-3

u/redditRezzr 7d ago

When being right feels so wrong.

16

u/malexj93 7d ago

JavaScript has its issues, but I don't think it's fair to blame it for floating-point arithmetic.

20

u/the_poope 7d ago

With JavaScript I would have expected "0.10.2"

4

u/Mondoke 7d ago

This is art. Thank you.

3

u/Random_-account 7d ago

Desmos: I am a being of pure energy and no weakness!

2

u/failedsatan 7d ago

not a Javascript issue sire

2

u/AgVargr 7d ago

Actual skill issue. Go ask Claude why