this post was submitted on 05 Oct 2023
1097 points (96.8% liked)

Programmer Humor

37322 readers
177 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] TootSweet@lemmy.world 13 points 2 years ago (3 children)

Oh oh oh now do infinity, -infinity, -0, and NaN.

[–] dandroid@dandroid.app 21 points 2 years ago (2 children)

NaN would be something that isn't toilet paper. So I'm gonna say a picture of a whole rotisserie chicken on the toilet paper bar.

[–] MotoAsh@lemmy.world 0 points 2 years ago* (last edited 2 years ago)

It gets funner when it's a value that actually is a complex number with an "imaginary" component, but gets represented by NaN because the real value doesn't make sense by itself. In reality, imaginary components are extremely critical for some equations and are totally valid.

I wish I remembered my math well enough to have one off the top of my head, but I don't use it often enough... IIRC, it's even important for magnetics, let alone more complex physics, so it does come up in practice quite often. I think there's even a fundamental part related to derivatives, but yea, don't exercise math enough. Might be misremembering.

[–] CanadaPlus@lemmy.sdf.org 3 points 2 years ago* (last edited 2 years ago)

Infinities: The toilet paper just keeps piling up until it's out of frame. It probably ends somewhere, but nowhere we can measure.

Alternately, the toilet paper it tightly wedged in the little hole and no more could be accommodated.

Subnormals: There's less than one square left, but there is still toilet paper.

-0: The glue marks on the empty tube are pointing the other way. This shouldn't matter, but is apparently enough to confuse some toilet users.

[–] Omega_Haxors@lemmy.ml 1 points 2 years ago

NaN, NaN, NaN, NaN, NaN, NaN, NaN and NaN