307
submitted 5 months ago* (last edited 5 months ago) by Avicenna@programming.dev to c/programmer_humor@programming.dev

A NaN spotted in the wild.

you are viewing a single comment's thread
view the rest of the comments
[-] copacetic@discuss.tchncs.de 20 points 5 months ago

"I have five pounds. Is that enough?"

"No."

"It costs more than five pounds?"

"No."

"How much do I have to pay?"

"This is NaN pounds."

"That means it costs more than five pounds?"

"No."

"It costs less than five pounds?"

"No."

"Exactly five pounds?"

"No."

leaves the shop

(Remember, comparison with NaN is always false)

this post was submitted on 28 Jun 2026
307 points (99.7% liked)

Programmer Humor

34376 readers
748 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