display number in 8 digits problem

Get help using Construct 2

Post » Fri Jan 31, 2014 3:24 am

how do i display number in 8 digits all time? for example if the value is 527, display as 00000527
Doo Doo Diving App Store | Google Play

Donut Pirate App Store | Google Play
B
17
S
2
G
1
Posts: 195
Reputation: 1,578

Post » Fri Jan 31, 2014 4:16 am

From the manual:
zeropad(number, digits)
Pad number out to a certain number of digits by adding zeroes in front of the number, then returning the result as a string. For example, zeropad(45, 5) returns the string "00045".
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Fri Jan 31, 2014 4:28 am

@encryptedcow

thank u! hollowthreat2014-01-31 04:28:51
Doo Doo Diving App Store | Google Play

Donut Pirate App Store | Google Play
B
17
S
2
G
1
Posts: 195
Reputation: 1,578


Return to How do I....?

Who is online

Users browsing this forum: JayH and 9 guests