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

Home » Public Forums » archive » assign an octal number to a variable
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: assign an octal number to a variable [message #62956 is a reply to message #62885] Tue, 14 October 2008 11:09 Go to previous message
duxiyu@gmail.com is currently offline  duxiyu@gmail.com
Messages: 88
Registered: March 2007
Member
Thank you very much.
This is what I want.

But I still have a question as follows:

IDL> print,"77
63

"16 is equal to '77'o.
I do not find the explanation of this expression in IDL help.


Du


On Oct 14, 5:29 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> On Oct 14, 1:53 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
>
>> I am looking for the method to assign a binary or hexadecimal  number
>> (such as 1101011 or 8AE3) to a variable.
>
> IDL> print, 'FF'x
>      255
> IDL> print, '100'b
>        4
> IDL> print, '77'o
>       63
>
> Mike
> --www.michaelgalloy.com
> Tech-X Corporation
> Software Developer II
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Casting boost::multi_array
Next Topic: Re: Is it possible to do overplot in xplot?

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

Current Time: Sun Oct 12 01:05:34 PDT 2025

Total time taken to generate the page: 2.32371 seconds