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

Home » Public Forums » archive » Re: Hex constants interpreted differently in IDL/v5.2
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: Hex constants interpreted differently in IDL/v5.2 [message #15515 is a reply to message #15503] Mon, 24 May 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
William Thompson (thompson@orpheus.nascom.nasa.gov) writes:

> Apparently, IDL/v5.2 interprets some hexadecimal constants differently than
> previous versions. For example, the statement
>
> IDL> help,'aa7f'x
>
> under IDL/v5.1 produces the result
>
> <Expression> LONG = 43647
>
> while under IDL/v5.2, the following is returned
>
> <Expression> INT = -21889

Yep. I think I reported this already. (Or meant to,
if I didn't.)

I first noticed it with this kind of syntax:

Plot, data, Color='00ffff'x

This used to draw a yellow plot, but started drawing
white plots in IDL 5.2. Of course, the previous behavior
was decidedly a bug (that I had gotten used to, darn it),
but if you want a 24-bit number, you really do need to
make it a long:

Plot, data, color='00ffff'xL

I presume the bug was found and fixed when the programmers
were implementing the unsigned integer data type. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Including files/eps into PS
Next Topic: Re: IDL(rsi) + FORTRAN(digital) + DLL(windows nt)

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

Current Time: Sat Oct 11 12:29:51 PDT 2025

Total time taken to generate the page: 0.72272 seconds