Re: ifort functions for test NaN and Inf

Ian Bush wrote:

As if by magic, ddb78s@xxxxxxxxx appeared !

Anybody knows an intrinsic function for testing if a variable is
-+INF. I have found in the reference the function ISNAN but not the
equivalent for INF.

ISNAN is not standard. To perform either of these tests you will either
need a non-standard extension ( e.g. ISNAN ), so look in your compiler
docs, or, and much better, use the IEEE stuff in Fortran 2003. See

However your compiler might not support this yet,

Of course, you can write such functions yourself.