Built-In Namespace Number
| Method Attributes | Method Name and Description |
|---|---|
|
toPaddedString(length, char)
Convert a Number into a String padded at the beginning to the specified length
|
Method Detail
{String}
toPaddedString(length, char)
Convert a Number into a String padded at the beginning to the specified length
Defined in: number.js.
Defined in: number.js.
- Parameters:
- {Number} length Optional, Default: 2
- the length to pad the Number to
- {String} char Optional, Default: 0
- the character to use for padding
- Returns:
- {String} the Number, padded to the specified length