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.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.