Integer Formatting
#5

Quote:
Originally Posted by =>Sandra<=
pawn Code:
new number = 5;
format(string, sizeof(string), "%02d", number);

%02d will result: 05
%03d will result: 005
%06d will result: 000005
Ah, that's what I was looking for! 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: 1 Guest(s)