zeroPad

Version

1.6

Parameters

Parameter Type Description
num string Number to zero pad.
count integer Number of digits required.

Returns

A zero-padded string of the supplied number that is count digits long.

Example

zeroPad(“5”,4) = “0005”