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

Home » Public Forums » archive » floats from strings... duh!
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: floats from strings... duh! [message #4437 is a reply to message #4362] Tue, 30 May 1995 00:00 Go to previous messageGo to previous message
rarback is currently offline  rarback
Messages: 15
Registered: October 1992
Junior Member
In article <PHIL.95May27160944@peace.med.ohio-state.edu>,
phil@peace.med.ohio-state.edu (Phil) writes:
> In article <3q568j$5bd@nntp.Stanford.EDU> zowie@banneker.stanford.edu
(Craig DeForest) writes:
>
>> which won't look right because the title will be "Plot number 5"
>> instead of "Plot number 5", so you need to tack another bag on that:
>>
>> plot,mydata,title="Plot number "+strtrim(string(plotno),2)
>>
>
> you could also just use the strcompress function. ie:
> plot,mydata,title="Plot number"+strcompress(plotno)
>
> There is also no need for the trailing space in the "Plot number"
> string since string compress prepends a space.
>

As long as we are all adding our tuppence to favorite ways to format strings:

plot, mydata, title = string( 'Plot number ', plotno, format='(a, i0'))


> Hope this helps.

Double, double!

----
Harvey Rarback phone: (312)702-9931
CARS fax: (312)702-5454
University of Chicago Internet: rarback@cars3.uchicago.edu
5640 South Ellis Avenue HEPnet/SPAN: 47583::RARBACK
Chicago, IL 60637 "There is no pizza in Sweden."
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: matching 2 grids
Next Topic: Solaris 10

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

Current Time: Wed Oct 08 20:06:17 PDT 2025

Total time taken to generate the page: 0.77464 seconds