How to detect NaN's

Keith Bierman fpgroup khb at chiba.Eng.Sun.COM
Tue Jun 4 03:51:51 AEST 1991


In article <1991May31.130807 at IASTATE.EDU> keinert at IASTATE.EDU (Keinert Fritz) writes:

   One of my biggest gripes with both the Sun and Mips Fortran
                                          ^^^????
try man ieee_handler() and man f77 (-fnonstandard)

I don't see how to make this any easier; here is what I usually use

	i=ieee_handler("set","common",%val(2)) !%val(2) is SIGFPE_ABORT
					       
f77_floatingpoint.h contains the definition of %val(2) and a lot of
other things. I can type %val(2) faster, so I personally wind up using
it more often than I should.

This isn't a particularly new feature; you might wish to peruse the
Numerical Computation Guide.
--
----------------------------------------------------------------
Keith H. Bierman    keith.bierman at Sun.COM| khb at chiba.Eng.Sun.COM
SMI 2550 Garcia 12-33			 | (415 336 2648)   
    Mountain View, CA 94043



More information about the Comp.unix.ultrix mailing list