comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: where() and IEEE NaN--why float?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: where() and IEEE NaN--why float? [message #17948] Fri, 19 November 1999 00:00
mitch grunes is currently offline  mitch grunes
Messages: 6
Registered: November 1999
Junior Member
David Fanning wrote:
> I usually check for NANs like this:
>
> IDL> Print, Where( NOT Float( Finite(a) ) )
> 2 4

Me too--except I leave out Float.

I assume that you are trying to see whether it can be stored as a legit
float (4 byte real). I usually calculate using doubles (8 byte reals), which have
a larger range and better accuracy, except when storage is at an extreme
premium.

Or am I missing something?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Transparency of Polygon Objects
Next Topic: Re: At Last! A Subsititute for cheerios

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:33:12 PDT 2025

Total time taken to generate the page: 0.03315 seconds