My first encounter with Javascript: Not a Number is a Number.
In my youth, I spent days wondering how in the world numbers in animation scripts are not "NaN" strings the moment something causes zero division, but are still numbers called NaN.
In my youth, I spent days wondering how in the world numbers in animation scripts are not "NaN" strings the moment something causes zero division, but are still numbers called NaN.
Still, `5 + 2 * NaN == 5 + 2 * NaN` would return false, because it becomes `NaN == NaN`, and NaN is not equal to NaN.
NaN will come up when doing
Inf - Inf
But clearly: 0 * (Inf - Inf)
cannot be said to be zero.NaN really is not a number.