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

Home » Public Forums » archive » Re: anything like sprintf?
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: anything like sprintf? [message #58813] Mon, 18 February 2008 09:11 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Feb 18, 6:52 am, Yann Zoll <y_z2...@yahoo.de> wrote:
> May the force be with you !!
> Thats what i was lokking for, thank you.

You can use C-style format codes with a bit more notation (since you
mentioned sprintf, I'm assuming you like those):

IDL> time = string(format='(%"%02d.%02d.%02d")',hh,mm,ss)

This is a direct translation of you sprintf statement.

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: anything like sprintf?
Next Topic: yaxisformat='exponent' in IDLgrGraphics

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

Current Time: Sat Oct 11 00:44:30 PDT 2025

Total time taken to generate the page: 2.48108 seconds