val | The value to test |
Return: | Returns a BOOLEAN indicating whether a real value is a valid value (neither infinite not NaN). |
The isFinite function returns whether a real value is a valid value (neither infinite not NaN).
Example:
IMPORT STD; a := STD.Math.Infinity ; b := STD.Math.NaN; c := 42.1; STD.Math.isFinite(a); //false STD.Math.isFinite(b); //false STD.Math.isFinite(c); //true
See Also: isNaN ,isInfinite