Methods
(inner) format(number) → {string}
- Source:
Convert a number to a formated string
Parameters:
Name | Type | Description |
---|---|---|
number |
number | The number to be formated |
options.decimalPlaces |
number | The number of decimal places of the output (optional) |
options.decimalSeparator |
string | The character used as a decimal separator (default: '.') |
Returns:
The formatted number
- Type
- string
(inner) isInt(value) → {Boolean}
- Source:
Test if a value is an integer
Parameters:
Name | Type | Description |
---|---|---|
value |
any | to be tested |
Returns:
true if the paramter is an integer number
- Type
- Boolean
(inner) isNumber(value) → {Boolean}
- Source:
Test if a value is an number
Parameters:
Name | Type | Description |
---|---|---|
value |
any | to be tested |
Returns:
true if the paramter is a number
- Type
- Boolean
(inner) toNumber(any) → {number}
- Source:
Convert a value to a number
Parameters:
Name | Type | Description |
---|---|---|
any |
any |
Returns:
- Type
- number