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 #13446 is a reply to message #13433] Thu, 12 November 1998 00:00 Go to previous messageGo to previous message
korpela is currently offline  korpela
Messages: 59
Registered: September 1993
Member
In article <MPG.10b3c2392717b0898971a@news.frii.com>,
David Fanning <davidf@dfanning.com> wrote:
>
> IDL> Help, !Values, /Structure
> ** Structure !VALUES, 4 tags, length=24:
> F_INFINITY FLOAT 1.#INF0
> F_NAN FLOAT 1.#QNAN
> D_INFINITY DOUBLE 1.#INF000
> D_NAN DOUBLE 1.#QNAN00
>
> I don't know. This may be a Windows thing. Looks a little
> Bill Gatesh, doesn't it. :-)

Yes it does look windowish. It probably has something to do
with the compiler they used to make their windows version. What
concerns me is how this affects reading and writing of text files.
In the past I have relied on IDL correctly parsing 'Inf' and 'NaN'
in input files. You can see the obvious portability problem.

I'm not sure if IEEE specifies the text representation of 'Inf'
and 'NaN' or if a program is required to be able to correctly parse
them on input.

Out of curiousity, could you try the following?

print,float('Inf')
print,float('1.#INF0')

(I'm guessing that this will give the same result as read on the same strings.)

My sun gives this:
IDL> print,!version
{ sparc sunos unix 5.0 Apr 28 1997}
IDL> print,!values
{ Inf NaN Infinity NaN}
IDL> print,float('Inf')
Inf
IDL> print,float('1.#INF0')
1.00000


Thanks,

Eric

--
Eric Korpela | An object at rest can never be
korpela@ssl.berkeley.edu | stopped.
<a href="http://sag-www.ssl.berkeley.edu/~korpela">Click for home page.</a>
[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: Sat Oct 11 21:14:29 PDT 2025

Total time taken to generate the page: 1.92138 seconds