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

Home » Public Forums » archive » Re: Appending Numbers to Strings in IDL
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: Appending Numbers to Strings in IDL [message #48976] Tue, 06 June 2006 10:08 Go to previous message
Jo Klein is currently offline  Jo Klein
Messages: 54
Registered: January 2006
Member
> But, that leaves a lot of whitespace in front of the number. Is there
> a way to eliminate this whitespace?

Hi Branch,
You can specify a FORMAT keyword to STRING to get the numbers prettily
formatted. If you just want integers without whitespace, try
string(variable,FORMAT='(I0)')
This is a very flexible approach - with FORMAT, you could also specify
the precision of floating point numbers and the like.

Jo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: idl license installation under debian sarge amd64
Next Topic: .Reset_Session in a script

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

Current Time: Wed Oct 08 20:03:00 PDT 2025

Total time taken to generate the page: 0.03203 seconds