Making a number three by padding with 0's. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Making a number three by padding with 0's. (
/showthread.php?tid=566566)
Making a number three digits by padding with 0's. -
Ciarannn - 06.03.2015
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?
Re : Making a number three by padding with 0's. -
Golimad - 06.03.2015
in format. ( for an integer ). Use strval to get number value from a string.