You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which is extremely funny if you think about it. Interesting it hasn't been noticed until now, but its rather rare situation I suppose. And this project is dead. Unfortunately.
Well, NaN is the value of a variable of type Number, that is "not a number".
It's not that it hasn't been noticed until now (see StackOverflow) — it's according to the specs (JS type Number is an IEEE 754 float.
Think, for example, of parseInt(input) as a function with a return value of type Number and with an input value that cannot be parsed as a numeric value.
The return value must be of type Number, but does not need to be of a numeric value, thus NaN.
Activity
ta2edchimp commentedon Oct 12, 2017
Well,
NaNis the value of a variable of typeNumber, that is "not a number".It's not that it hasn't been noticed until now (see StackOverflow) — it's according to the specs (JS type
Numberis an IEEE 754 float.Think, for example, of
parseInt(input)as a function with a return value of typeNumberand with aninputvalue that cannot be parsed as a numeric value.The return value must be of type
Number, but does not need to be of a numeric value, thusNaN.