isinf
isinf |
Purpose
Test whether a real value is an infinity.
Synopsis
function isinf(r: real):boolean
Argument
r
|
The value to test
|
Return value
true if the value is
INFINITY or
-INFINITY.
Further information
When the parameter
matherr is set to
true (see
setparam) mathematical functions return the constant
NAN or
INFINITY
instead of failing. This function can be used to identify incorrect results (direct comparison to
NAN or
INFINITY always fails).
Related topics