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 #62944 is a reply to message #62885] Tue, 14 October 2008 14:29 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, 11:13 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> On Oct 14, 2:33 pm, "dux...@gmail.com" <dux...@gmail.com> wrote:
>
>> 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?
>
> Yes, this is the reason that you should never use double quotes for
> strings, because valid looking strings produce errors that take one
> forever to figure out why they are a syntax error:
>
>   IDL> print, "22 monkeys"
>
>   print, "22 monkeys"
>             ^
>   % Syntax error.
>
> As far as I know, there is no equivalent notation for binary or
> hexadecimal values, just the '100'b and 'FF'h notations.
>
> Mike
> --www.michaelgalloy.com
> Tech-X Corporation
> Software Developer II

Finally, I find it in IDL help.
It is under the topic "Defining and Using Constants".
[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: Wed Oct 15 15:59:49 PDT 2025

Total time taken to generate the page: 1.12079 seconds