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

Home » Public Forums » archive » Re: differences idl5.5 and idl5.6
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: differences idl5.5 and idl5.6 [message #34074 is a reply to message #34073] Wed, 19 February 2003 09:26 Go to previous messageGo to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <b30ble$dpt7$1@zam602.zam.kfa-juelich.de>,
Reimar Bauer <R.Bauer@fz-juelich.de> wrote:

> on aix the result is a bit more different,
> IDL> a=1./0 & print,a,fix(a)
> Inf -1
>
>
> I would prefer as result NaN!

The IEEE standard defines distinct special values for Inf (result of
division by zero) and NaN (result of operations on Inf's and Nan's).
Being able to distinguish them is probably a good thing. The FINITE
function has keywords for this purpose. Without keywords, FINITE
detects both.

Unfortunately, perhaps, standard integer formats do not include
"special" values to represent inifinties, Nan's, etc. You have to
handle them yourself. Hence all those ASCII data sets filled with
-999's!

Conversion of IEEE Inf's and NaN's to integers may well be system
dependent.

Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Check if coordinate is in array
Next Topic: running out of memory! can all memory be restored in idl?

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

Current Time: Sun Oct 12 04:33:28 PDT 2025

Total time taken to generate the page: 1.76337 seconds