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 #62951 is a reply to message #62885] Tue, 14 October 2008 13:33 Go to previous messageGo to previous message
duxiyu@gmail.com is currently offline  duxiyu@gmail.com
Messages: 88
Registered: March 2007
Member
On Oct 14, 9:46 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> On Oct 14, 12:09 pm, "dux...@gmail.com" <dux...@gmail.com> wrote:
>
>> 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'm a bit confused by the statement. "16 is equal to '16'o and "77 is
> equal to '77'o; they are different notations for the same thing.
>
> ; 16 octal = 1 * 8 + 6 = 14 decimal
>
> IDL> print, "16
>       14
> IDL> print, '16'o
>       14
>
> ; 77 octal = 7 * 8 + 7 = 63 decimal
>
> IDL> print, "77
>       63
> IDL> print, '77'o
>       63

Yes, I know "16 is another notation of '16'o.
I want to learn more about it,
and wonder whether there is the similiar notation for the binary or
hexadecimal number.
But I cannot find any information about it in IDL help.
Did you see this notation before?
[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: Fri Oct 10 17:17:20 PDT 2025

Total time taken to generate the page: 1.43870 seconds