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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
- If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Infinityis also a number in JavaScript / IEEE number formats, but you'll get a lot of grumbling from mathematicians with that sort of assertion.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.
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.
When writing my comment I had successfully repressed that fact in my mind. That's obviously worse.
NaN indeed!