The NaN function returns the "Not a Number" value, according to the IEEE standards.
Comparison operators do not work with NaN parameters because, by definition, NaN compared to anything, even another NaN, is false. Use numtype to test if a value is NaN.