number format display 002

Discussion and feedback on Construct 2

Post » Wed Nov 14, 2012 9:28 am

hi guys,
please help me how can i display number in this format example
0==>000
1==>001
2==>002


thanks
B
5
S
2
Posts: 49
Reputation: 873

Post » Wed Nov 14, 2012 11:51 am

With zeropad(number, digits)

If you get the number from a variable called MyNumber, it'll be zeropad(MyNumber, 3)
B
7
S
2
G
2
Posts: 25
Reputation: 1,910


Return to Construct 2 General

Who is online

Users browsing this forum: RoboticPhoenix and 3 guests