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

Home » Public Forums » archive » Re: Possible Mac OS Bug with FIX.
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: Possible Mac OS Bug with FIX. [message #44031 is a reply to message #44030] Wed, 11 May 2005 10:55 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth Bowman writes:

> I think perhaps you want fix(tmp, 14)?
>
> IDL> tmp = bytarr(20)
> IDL> tmp[15] = 5
> IDL> print, fix(tmp[15])
> 5
> IDL> print, fix(tmp, 14)
> 5
>
> I think it is not a question of endianess, but of "which 2 bytes belong to the
> 2-byte integer".

What we are really looking for is consistency across
architectures. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using IDL variables from ENVI
Next Topic: Widget_Draw scrollebe but not scrollable ??

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

Current Time: Sat Oct 11 21:30:42 PDT 2025

Total time taken to generate the page: 1.59133 seconds