this post was submitted on 30 Jul 2026
176 points (97.8% liked)

Memes

56896 readers
1075 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] the_beber@feddit.org 10 points 1 month ago (1 children)

And sometimes it seems irrational.

[–] AnnaFrankfurter@lemmy.ml 9 points 1 month ago* (last edited 1 month ago) (1 children)

And other times 0.1 + 0.2 = 0.3000004

[–] cypherpunks@lemmy.ml 5 points 1 month ago* (last edited 1 month ago)

And other times 0.1 + 0.2 = 0.3000004

0.1 + 0.2 != 0.3000004

You're off by 0.000000399999999955991114575226674787700176239013671875

(0.1 + 0.2 is actually 0.3000000000000000444089209850062616169452667236328125)

(And 0.1 is actually 0.1000000000000000055511151231257827021181583404541015625, and so on. People unfamiliar with IEEE 754 may be surprised by the output of python -c 'print("%.60f" % 0.1)')