Definition
Not a Number
Not a Number (NaN) is a floating-point value encoding the outcome of an undefined operation, such as
Propagation
NaN propagates through arithmetic: any operation consuming a NaN returns a NaN. NaN also compares unordered to every value, including itself, so the test fails for NaN — the basis of the standard isNaN check.