Determines whether the passed value is a counting number (positive integer excluding 0
).
Must call Format.Config.addUtilsToGlobals to be defined.
The number to test.
true
if the value parameter is a positive integer excluding 0
.
Determines whether the passed value is an even number.
Throws an error if the value is not an integer (when isInteger returns false
).
Must call Format.Config.addUtilsToGlobals to be defined.
The number to test.
true
if the value parameter is an even number.
Determines whether the passed value is an integer.
Must call Format.Config.addUtilsToGlobals to be defined.
The number to test.
true
if the value parameter is an integer.
Determines whether the passed value is a whole number (positive integer including 0
).
Must call Format.Config.addUtilsToGlobals to be defined.
The number to test.
true
if the value parameter is a positive integer including 0
.
Returns the best fitting formatted value, returned by the Number.toExponential
method, given a minimum and/or maximum digits precision.
Must call Format.Config.addUtilsToGlobals to be defined.
The number to format.
The minimum number of digits to include in the format.
The maximum number of digits to include in the format.
Returns the best fitting formatted value, returned by the Number.toFixed
method, given a minimum and/or maximum digits precision.
Must call Format.Config.addUtilsToGlobals to be defined.
The number to format.
The minimum number of digits to include in the format.
The maximum number of digits to include in the format.
Returns the best fitting formatted value, returned by the Number.toPrecision
method, given a minimum and/or maximum digits precision.
Must call Format.Config.addUtilsToGlobals to be defined.
The number to format.
The minimum number of digits to include in the format.
The maximum number of digits to include in the format.
Generated using TypeDoc
Extends the built-in javascript
Number
object's static API.The Format.Config.addUtilsToGlobals method must be called in order to access the definitions.