[PD] Displaying as two digits

Andrew Faraday jbturgid at hotmail.com
Mon Apr 5 19:17:43 CEST 2010


cheers, this solved my problem

> Date: Mon, 5 Apr 2010 16:51:46 +0200
> From: fbar at footils.org
> To: pd-list at iem.at
> Subject: Re: [PD] Displaying as two digits
> 
> Hi Andrew,
> 
> On Mon, Apr 05, 2010 at 02:53:24PM +0100, Andrew Faraday wrote:
> > I'm working on a game on PD. Part of which is a timer set out
> > minutes:seconds. However, when the seconds variable is below 10 it's
> > displaying as a single digit. So most of the time this looks right (e.g.
> > 2:56), but at the start of each minute it looks a little unusual (0:1). I'm
> > displaying this using [text3d].  Any ideas how I can fix this?
> 
> [makefilename %02d] or [makefilename %.2d] pads your number with zeros so it
> has two digits. 
> 
> Ciao
> -- 
>  Frank Barknecht            Do You RjDj.me?          _ ______footils.org__
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/195013117/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100405/f84d99e7/attachment.htm>


More information about the Pd-list mailing list