[PD] Displaying as two digits
Jonathan Wilkes
jancsika at yahoo.com
Mon Apr 5 19:23:08 CEST 2010
--- On Mon, 4/5/10, Frank Barknecht <fbar at footils.org> wrote:
> From: Frank Barknecht <fbar at footils.org>
> Subject: Re: [PD] Displaying as two digits
> To: pd-list at iem.at
> Date: Monday, April 5, 2010, 4:51 PM
> 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.
Hi Frank,
Nice solution. Is this behavior documented anywhere?
-Jonathan
More information about the Pd-list
mailing list