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 #34077 is a reply to message #34075] Wed, 19 February 2003 08:33 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Dick Jackson wrote:
> "Reimar Bauer" <R.Bauer@fz-juelich.de> wrote in message
> news:3E539FE4.4000801@fz-juelich.de...
>
>> Hi,
>>
>> today I found a difference in handling infite numbers by the new
>
> version.
>
>>
>> IDL 5.6
>>
>> IDL> a=1./0 &print,a,fix(a)
>> Inf -32768
>>
>>
>> IDL 5.5
>>
>> IDL> a=1./0 &print,a,fix(a)
>> Inf 0
>>
>>
>>
>> So I can't say which is right both results are terrible.
>>
>> Now it is totally clear that this case must be tested.
>
>
> I don't see any change in behaviour on Windows 2000 Pro; in 5.4, 5.5 and
> 5.6, I get these identical results:
>
> IDL> a=1./0 &print,a,fix(a)
> Inf 0
> % Program caused arithmetic error: Floating divide by 0
> % Program caused arithmetic error: Floating illegal operand
>
> Cheers,
> --
> -Dick
>
> Dick Jackson / dick@d-jackson.com
> D-Jackson Software Consulting / http://www.d-jackson.com
> Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
>
>

Thanks Dick,


then it seems to be a bug on linux and aix

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!


regrads

Reimar














--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
[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: Fri Oct 10 06:54:29 PDT 2025

Total time taken to generate the page: 1.19785 seconds