Integer Formatting
#1

Hi

I want to format an integer like so:

pawn Code:
new number = 5;
format(string, sizeof(string), "%i", number);
But instead of showing 5, I want it to show 05. How do I do this?

Thanks
Reply


Messages In This Thread
Integer Formatting - by 1337pr0 - 07.03.2009, 19:00
Re: Integer Formatting - by Dujma - 07.03.2009, 19:04
Re: Integer Formatting - by 1337pr0 - 07.03.2009, 19:06
Re: Integer Formatting - by Sandra18[NL] - 07.03.2009, 19:13
Re: Integer Formatting - by 1337pr0 - 07.03.2009, 19:14

Forum Jump:


Users browsing this thread: 2 Guest(s)