Herman D. Knoble
2006-08-25 13:41:09 UTC
In Fortran 95/2003 Explained, Section 11.93 Elemental functions
indicates a use statement: use ieee-arithmetic
Thus, for example, one might test the 2003 elemental function
ieee_is_nan using a program like:
program testisnan
use ieee_arithmetic
real :: x
x=1
if (ieee_is_nan(x) ) then
print *, "X is NaN"
else
print *, "X is NOT NaN"
endif
end program testisnan
Question: Does anyone know of a Fortran Compiler which
implements this ieee environment (use and functions)?
Many thanks.
Skip Knoble
indicates a use statement: use ieee-arithmetic
Thus, for example, one might test the 2003 elemental function
ieee_is_nan using a program like:
program testisnan
use ieee_arithmetic
real :: x
x=1
if (ieee_is_nan(x) ) then
print *, "X is NaN"
else
print *, "X is NOT NaN"
endif
end program testisnan
Question: Does anyone know of a Fortran Compiler which
implements this ieee environment (use and functions)?
Many thanks.
Skip Knoble