Number related methods
Methods
# static toString(num, numDigits, baseopt) → {string}
Converts a number to a string, adding optionnal leading zeroes
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
num |
Number
|
The number | ||
numDigits |
int
|
The number of digits in the string. Adds leading zeroes | ||
base |
int
|
<optional> |
10 | The conversion base |
The number as a string
string