Comparison with NaN¶
Arithmetic comparisons with the special not-a-number value
NaN are useless: nothing is considered to be equal to
NaN, not even
NaN itself, and similarly nothing is considered greater or less than
isNaN function from the standard library to determine whether a given value is
x === NaN, use
Mozilla Developer Network: NaN.
Common Weakness Enumeration: CWE-570.
Common Weakness Enumeration: CWE-571.