this post was submitted on 14 Nov 2026
373 points (97.2% liked)

Programmer Humor

34135 readers
1596 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] anton@lemmy.blahaj.zone 4 points 18 hours ago (1 children)

Once you accept that each float represent a range of reals most design decisions make sense.
Infinity is just the name given to values that are too large to represent otherwise and negative zero includes negative values too close to zero.

What mathematics probably hate most about floats is that rounding breaks commutativity.

[–] bss03@infosec.pub 2 points 10 hours ago (1 children)

What mathematics probably hate most about floats is that rounding breaks commutativity.

Actually, the maths people in my circles tend to complain more about how the normal floating-point equality test doesn't define an equivalence relation, but really any of the violations of field properties can attract complaints.

[–] anton@lemmy.blahaj.zone 1 points 2 hours ago* (last edited 2 hours ago)

When writing my comment I had successfully repressed that fact in my mind. That's obviously worse.