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 #52017 is a reply to message #20144] Fri, 22 December 2006 01:58 Go to previous messageGo to previous message
mmeron is currently offline  mmeron
Messages: 44
Registered: October 2003
Member
In article <cc9no2dh8nn363kh6jnac5roul71gqg835@4ax.com>, Wox <nomail@hotmail.com> writes:
> 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)
>
There is always more than one way to skin a cat:-)

Mati Meron | "When you argue with a fool,
meron@cars.uchicago.edu | chances are he is doing just the same"
[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: Sat Nov 29 00:06:50 PST 2025

Total time taken to generate the page: 0.96087 seconds