Good price.
You ever have one of those moments when you just put 2 and 2 together, and also that you should have had that realization many years ago?
I just realized what NaN stands for…
This must be what people who get told “you can just wait for the shower water to warm up before hopping in” feel like.
The elephant and rope parable rings its bell of sound morals!
Not so much the realizing what NaN means; that’s more relevant to that XKCD which I probably don’t need to describe here.
“That makes it free, right?”
Not only that, it makes your entire purchase free due to NaN arithmetic.
But as you mention, NaN propagates.
So at checkout, your wallet will become NaN, as the shops money balance. Then it will spread to your bank account and before you realize what happens the whole banking-district is in flames.no, it costs NaN, now remove NaN from your account…
…oh no
0*(NaN)… So does that mean the price IS a number?
I suppressed most of my former js knowledge but I guess it’s a string now.
In JS, it’s just NaN if my browser’s console is to be believed. I suspected it would probably be
{object}for no clear reasonfor no clear reason
JS That’s the reason. The language has an awful type system.
If 0/0 is NaN, then does that mean 0*NaN = 0*0/0 = 0?
0*NaN = NaN
…spilled his arithmetic overflow on the ground.
Onani!
lidl quality
cost = “arm” + “leg”;

Ooo na na…







