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

Home » Public Forums » archive » Re: Octals
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: Octals [message #27142 is a reply to message #27141] Thu, 11 October 2001 08:59 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Martin Downing wrote:
>
> Steve,
>
> Lookup the values you want in the charsets, eg "*" is octal 52, which is
> written in IDL as '52'OB. To use it in a string use STRING():
>
> IDL> print, string('52'Ob)
> *
> IDL> title = "frequency " + string('52'Ob) + " wavelength"

Normaly we should always use ' for strings.

Because " with numbers gives an octal number, e.g.

IDL> print, "10
8

regards
Reimar

> IDL> print, title
> frequency * wavelength
> ; eg usage in a plot title
> IDL> plot, indgen(10), title=title
>
> Martin
>
> "Steve Cole" <s.j.cole@ex.ac.uk> wrote in message
> news:3BC5A7F1.718B0997@ex.ac.uk...
>> Does anybody know how to print a character or symbol by its octal value?
>>
>> (I am trying to put a multiplication sign in the title of a plot)
>>
>> Any help would be gratefully recieved.
>>
>> Thanks
>>
>> Steve Cole
>> University of Exeter
>>

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Titles
Next Topic: Passing strings to CALL_EXTERNAL

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

Current Time: Wed Oct 08 19:59:57 PDT 2025

Total time taken to generate the page: 0.00411 seconds