Next: ITIME, Previous: ISHFTC, Up: Intrinsic Procedures
ISNAN
— Test for a NaNISNAN
tests whether a floating-point value is an IEEE
Not-a-Number (NaN).
ISNAN(X)
X | Variable of the type REAL .
|
LOGICAL
. The returned value is TRUE
if X is a NaN and FALSE
otherwise.
program test_nan implicit none real :: x x = -1.0 x = sqrt(x) if (isnan(x)) stop '"x" is a NaN' end program test_nan