this post was submitted on 14 Nov 2026
398 points (97.4% liked)

Programmer Humor

34196 readers
496 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
[–] palordrolap@fedia.io 18 points 3 days ago (2 children)

Infinity is also a number in JavaScript / IEEE number formats, but you'll get a lot of grumbling from mathematicians with that sort of assertion.

[–] anton@lemmy.blahaj.zone 4 points 2 days 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 2 days 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 2 points 2 days ago* (last edited 2 days ago)

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

[–] PattyMcB@lemmy.world 1 points 3 days ago