src code

instance method Number#toPaddedString

Number#toPaddedString(length[, radix]) → String

Converts the number into a string padded with 0s so that the string's length is at least equal to length. Takes an optional radix argument which specifies the base to use for conversion.