Thanxs!
I was thinking I had to use a float....
> -----Original Message-----
> From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 11:35
> To: Yacketta, Ronald
> Cc: Beginners (E-mail)
> Subject: Re: help with printf formatting please
>
>
> On Thu, 9 Aug 2001, Yacketta, Ronald wrote:
>
> > I do not get the 0 as in 09 , 08, 07 ,06 etc..
> >
> > what could I do to ensure that the $sec is _always_ 2 digits?
>
> Precede your format specifier with 0#:
>
> ~$ perl -e 'printf("%02d\n", 6);'
> 06
> ~$ perl -e 'printf("%03d\n", 6);'
> 006
>
> -- Brett
>
> http://www.chapelperilous.net/btfwk/
> --------------------------------------------------------------
> ----------
> Time flies like an arrow. Fruit flies like a banana.
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]