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

Home » Public Forums » archive » hexadecimal variables
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: hexadecimal variables [message #15224 is a reply to message #15093] Mon, 26 April 1999 00:00 Go to previous message
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
wmc@bas.ac.uk wrote:
> Pavel Romashkin <promashkin@cmdl.noaa.gov> wrote:
>> h_string = '40000FC0DA'

> wmc> h_long = long64(h_string+''x)
> Seems to work perfectly well
> wmc> print,h_long
> 4398043954346

Oops, I didn't check this properly. I just looked at the above & thought it
was about right, but IDL has been fooling me:

I thought the string+''x syntax ought to work (why doesn't it?) but it doesn't,
it just doesn't always generate an error message. Oh dear. In fact:

wmc> h_string='10' & h_long = long(h_string+''x) & print,h_long
-2596734
wmc> h_string='10' & h_long = long(h_string+''xl) & print,h_long

h_string='10' & h_long = long(h_string+'
^
% Long integer constant must be less than 2147483648.

I'm confused..., but I suspect IDL is too...

-W

btw: { alpha OSF unix 5.2 Oct 30 1998}

--
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Better Fitting routine
Next Topic: Searching in a sorted array

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

Current Time: Sun Oct 12 07:14:41 PDT 2025

Total time taken to generate the page: 0.32014 seconds