this post was submitted on 08 Sep 2023
231 points (100.0% liked)

196

17027 readers
908 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

If you have any questions, feel free to contact us on our matrix channel.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] planetaryprotection@midwest.social 27 points 1 year ago (1 children)

Programmer: 2 + 2 is 3.99999999999999999

[โ€“] anton@lemmy.blahaj.zone 25 points 1 year ago

2 + 2 == 4 with any reasonable fixed and floating point format. In ieee 754 floats powers of 2 have a fraction of exactly 1.0 and differing exponents.