[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: divide by zero problems



In article <7hfhke$gn7$1@clam.niwa.cri.nz>,
	"Mark Hadfield" <m.hadfield@niwa.cri.nz> writes:
>> ....  Apparently the IDL on some platforms
>> is not IEEE compliant.  On those platforms (!values.f_NaN eq
> !values.f_NaN)
>> can be true.  I would consider this to be a major bug and would not use
>> IDL on such a platform.
> 
> IDL 5.2 on Windows NT gives:
> 
>     IDL> print, !values.f_NaN eq !values.f_NaN
>        1
>     % Program caused arithmetic error: Floating illegal operand
> 
> ...Sigh, I guess I'll have to switch to Matlab!
> 


Naw, just switch to Linux :-)

   IDL> PRINT, !VALUES.F_NAN EQ !VALUES.F_NAN
      0
      


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Robert S. Mallozzi                                       256-544-0887
                                                      Mail Code ES 84
Work: http://gammaray.msfc.nasa.gov/     Marshall Space Flight Center 
Play: http://cspar.uah.edu/~mallozzir/           Huntsville, AL 35812
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~