Re: NAN and INF again ...



Ralf: You might see the references listed at:

http://ftp.aset.psu.edu/pub/ger/fortran/hdk/nan.f90

Skip Knoble


On Thu, 12 Jul 2007 18:37:50 -0700, Ralf Schaa <schaa@xxxxxxxxxxxxxxxx> wrote:

-|People,
-|
-|looking at all the threads abouth this topic leaves me confused - I
-|could not find an answer to the following question:
-|
-|
-|if( var/var /= 1) then
-| write(*,*) 'This is a NAN or INF'
-|endif
-|
-|i) can I test wether a real variable is a number with this test?
-|ii) or is it highly dependent on what platform/compiler you are
-|using ?
-|iii) does it always work?
-|
-|Cheers
-|-Ralf

.