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

Home » Public Forums » archive » Re: Unknown #INFO
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: Unknown #INFO [message #13439 is a reply to message #13433] Thu, 12 November 1998 00:00 Go to previous messageGo to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Stein Vidar Hagfors Haugan wrote:

> In article <72d8sr$9at$1@agate.berkeley.edu>
> korpela@albert.ssl.berkeley.edu (Eric J. Korpela) writes:
>
> [...]

Oh yeah, I love it!

IDL> print,!version
{ mipseb IRIX unix 5.1.1 Jul 20 1998}
IDL> print,!values
{ inf nan0x2000000 inf nan0x70000000}


> IDL> print,float(['INF','Inf','NaN','nanq'])

IDL> print,float(['INF','Inf','NaN','nanq'])
% Type conversion error: Unable to convert given STRING to Float.
% Detected at: $MAIN$
% Type conversion error: Unable to convert given STRING to Float.
% Detected at: $MAIN$
% Type conversion error: Unable to convert given STRING to Float.
% Detected at: $MAIN$
% Type conversion error: Unable to convert given STRING to Float.
% Detected at: $MAIN$
0.00000 0.00000 0.00000 0.00000

"All [systems] are equal, but some are more equal than others."
(G.Orwell)

BTW: I would say that it is alright for IDL to pick up the sign in
-float('Inf'). That's what people write below integrals all the time ;-)
So at least in theory you could test
for -Inf and replace it by the smallest (largest negative) number that
your system represents. But, I realize that
symbolic algebra seems rather mathematica's realm, and an average IDLer
would rather only have to test for
value eq !values.Inf instead of abs(value) ...

So long,
Martin.

PS: Hope they fixed this inconsistency across all platforms in 5.2

------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Talking with my C data
Next Topic: Device's bits_per_pixel keyword

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

Current Time: Fri Oct 10 16:51:37 PDT 2025

Total time taken to generate the page: 0.25035 seconds