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 #62948 is a reply to message #62885] Tue, 14 October 2008 14:13 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
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
[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 15:57:12 PDT 2025

Total time taken to generate the page: 0.24357 seconds