Determines whether the passed value is a counting number (positive integer excluding 0
).
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
).
The number to test.
true
if the value parameter is an even number.
Determines whether the passed value is an integer.
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
).
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.
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.
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.
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
A Format.Utils sub-module containing methods related to numeric operations.