for the math homies, you could say that NaN is an absorbing element
Floating-point arithmetic
Submitted 10 months ago by JPDev@programming.dev to programmer_humor@programming.dev
https://lemmy.ml/pictrs/image/7a2b0695-148f-4a09-9dad-f74520b6bbe3.jpeg
Comments
AlmightySnoo@lemmy.world 10 months ago
WaterWaiver@aussie.zone 10 months ago
In Kerbal Space Program your ships sometimes catch the NaN virus. If one fuel tank level is reading NaN then whatever you do DON’T try and fill it from another (full) tank. I’m not sure if it can spread to physics (thrust, mass, etc) but I presume that it can given that fuel tank mass is calculated based off filled capacity.
I wonder what would happen if you landed a NaN-infected spaceship on a planet.
Mesa@programming.dev 10 months ago
That’s both really cool and very concerning at the same time. I’d be scared to play lol.
Kissaki@programming.dev 10 months ago
It’s infectious!
CodexArcanum@lemmy.world 10 months ago
If I can’t be a number, none of you can!
(See also cascading nulls)