Making a number three by padding with 0's.
#1

Quick question.
If I have a string which value is 58, how do I get the console to make it 058 so it's always three numbers long?
Reply
#2

Код:
 %03d
in format. ( for an integer ). Use strval to get number value from a string.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)