isNaN(Function) |
Top Previous Next |
This function checks if the provided value is not a number. Infinity is considered a number. This should be used to verify results of calculations where it is possible to have an illegal value. Besides the functions that return NaN on invalid input, it is also possible to get NaN by using normal operators e.g. 0/0, or other cases where the result is undefined.
Note: This function works with DOUBLE, but can also work with FLOAT as described in the Floating-point math introductory section.
Input: V : DOUBLE Value to check.
Returns: BOOL True if the value is not a number, False otherwise.
Declaration: FUNCTION isNaN : BOOL;
Example: INCLUDE rtcu.inc |