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

Home » Public Forums » archive » Formatting strings to coordinates
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: Formatting string [message #52018 is a reply to message #20144] Fri, 22 December 2006 01:32 Go to previous messageGo to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
Never looked at it that way :-). I always do padding like this:

IDL> var='312'
IDL> print,string(var,format='(I04)')
0312

On Fri, 22 Dec 2006 08:39:24 GMT, mmeron@cars3.uchicago.edu wrote:

> newvar = strmid('0000'+var,3,4,/reverse)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI and the IDL Virtual Machine
Next Topic: Re: XVOLUME in batch?

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

Current Time: Sun Oct 12 09:49:20 PDT 2025

Total time taken to generate the page: 1.20031 seconds