C++ <cmath> - NAN
The NAN macros expands to an expression of type float that represents a NaN if the implementation supports quiet NaNs (otherwise, it is not defined). If the implementation does not support quiet NaNs, this macro constant is not defined.
Definition in the <cmath> header file is:
#define NAN /*implementation defined*/
❮ C++ <cmath> Library