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

Programmer Humor

34156 readers
867 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
[–] alsimoneau@lemmy.ca 1 points 7 hours ago (1 children)

That never arises in normal use though. I didn't even know it existed since anything that would yield one raises an exception instead.

[–] arty@feddit.org 1 points 5 hours ago

But the OP complains specifically about typeof NaN, and not about Math.sqrt(-1) // NaN

I know this doesn’t count as "normal use", but in Python you get it e.g. via math.inf * 0.