NaN()
Syntax
Result.f = NaN()Description
Returns the special floating-point value representing 'Not a Number'. This value is returned from invalid calculations such as calculating the square root of a negative number.
Parameters
None.
Return value
Returns the value representing NaN. The result is a float or double value depending on whether it is assigned to a float or double variable.
Remarks
NaN is a special value. Using NaN in any calculation with other values will again return the value NaN. The IsNaN() function can be used to check whether a variable represents the value NaN.
Example
Debug IsNaN(NaN() * 5 + 2) ; will display 1
See Also
IsNaN(), Infinity()
Supported OS
All