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 #62954 is a reply to message #62885] Tue, 14 October 2008 12:46 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
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
[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: Sat Oct 11 11:35:30 PDT 2025

Total time taken to generate the page: 0.64028 seconds