You are here

pad

pad(string, length) pads a string with leading zeros to the specified length.

Parameters

string
The string to pad with leading '0' characters.
length
The length of the padded string.

Returns

Returns the new string.