Re: Padding Zeros...

2008-11-03 Thread Uli Kusterer
On 31.10.2008, at 22:52, Jean-Nicolas Jolivet wrote: I'm having an interesting problem... I'm trying to format a number with padding zeros but I can't figure out how to do it in this particular situation. I know I can use a formatted string with something like [stringWi

Re: Padding Zeros...

2008-10-31 Thread Jean-Nicolas Jolivet
Thanks a lot guys, %0*d did the trick! :) Jean-Nicolas Jolivet Jean-Nicolas Jolivet wrote: I'm having an interesting problem... I'm trying to format a number with padding zeros but I can't figure out how to do it in this particular situation. I know I can use a format

Re: Padding Zeros...

2008-10-31 Thread Randall Meadows
On Oct 31, 2008, at 3:52 PM, Jean-Nicolas Jolivet wrote: I'm having an interesting problem... I'm trying to format a number with padding zeros but I can't figure out how to do it in this particular situation. I know I can use a formatted string with something like [s

Re: Padding Zeros...

2008-10-31 Thread Shawn Erickson
On Fri, Oct 31, 2008 at 2:52 PM, Jean-Nicolas Jolivet <[EMAIL PROTECTED]> wrote: > I'm having an interesting problem... I'm trying to format a number with > padding zeros but I can't figure out how to do it in this particular > situation. > > I know I can use a

Re: Padding Zeros...

2008-10-31 Thread Ken Thomases
On Oct 31, 2008, at 4:52 PM, Jean-Nicolas Jolivet wrote: I'm having an interesting problem... I'm trying to format a number with padding zeros but I can't figure out how to do it in this particular situation. I know I can use a formatted string with something like [s

Padding Zeros...

2008-10-31 Thread Jean-Nicolas Jolivet
I'm having an interesting problem... I'm trying to format a number with padding zeros but I can't figure out how to do it in this particular situation. I know I can use a formatted string with something like [stringWithFormat:@"%03d", 5], which would result in 005