Spanner
Methods
padDigits(number, digits)
Pad a number with leading zeros
padDigits(4, 2) // 04
padDigits(99, 3) // 099
padDigits(123, 5) // 00123
Package manager page
Direct link to the package
Pad a number with leading zeros
padDigits(4, 2) // 04
padDigits(99, 3) // 099
padDigits(123, 5) // 00123
Direct link to the package