logoalt Hacker News

thearrow04/02/20251 replyview on HN

Absolutely hilarious! I bet you forego using calculators and do all of your arithmetic by hand, too. Such a clever analogy!


Replies

651004/03/2025

Funny you mention that, I just wrote a bunch of arithmetic functions in js because floats cant be trusted. It was a tad more work than I expected but thats fine. Even I thought it was a tad silly but when I had to check if the results were correct and compared them in some big number calculators from the top of google it turned out not to match.

What do you think? 2/3 with 10 digits behind the dot in accuracy. Should that be 0.6666666666 or 0.6666666667 ? If I later add 1/3 to it my result is 1 which seems more correct?