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

Home » Public Forums » archive » Re: integer?
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: integer? [message #31622 is a reply to message #31620] Wed, 31 July 2002 01:32 Go to previous messageGo to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
tom wrote:

> Hi, all
>
> This is a segment of HEX: 00 00 00 64
>
> there are two 2byte-integers in it.
> But when I set
> a=0
> readu,lun,a ; I hope a=hex(00 00)
> print,a
> the result is 100. That's a=hex(00 00 00 64)
> that's the same as "a=0l readu,lun,a"
>
> how to read 2byte integer then?
>
> Tom

Could the number be one little endian 32 bit integer rather than two 16 bit
ones? That would account for the discrepancy.

What platform are you doing this on, and what platform was the data file
created on?


--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Molecular models and contour maps
Next Topic: Re: Image scrolling, displaying axes from outside the visible window

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

Current Time: Sat Oct 11 00:26:51 PDT 2025

Total time taken to generate the page: 1.52229 seconds