NaNs
NaN stands for Not a Number and refers to a special value used in floating-point arithmetic to represent undefined or unrepresentable results. It is part of the IEEE 754 standard, which defines how floating-point numbers are stored and manipulated in most modern computer systems.
In IEEE 754 binary floating-point formats, a NaN is indicated by an exponent of all ones and
NaN values arise from operations that have no well-defined numeric result, such as 0/0, ∞ − ∞, or the
A fundamental property of NaN is that it is not equal to any value, including itself. Comparisons
Practical use and language differences vary. JavaScript treats NaN as a numeric value and uses NaN !==
Overall, NaN serves as a standardized signaling mechanism for undefined results within floating-point computations, enabling error