Determines whether the passed value is a counting number (positive integer excluding 0
).
Must call Format.Config.addUtilsToPrototype to be defined.
true
if the value is a positive integer excluding 0
.
Determines whether the value is an even number.
Throws an error if the value is not an integer (when isInteger returns false
).
Must call Format.Config.addUtilsToPrototype to be defined.
true
if the value is an even number.
Determines whether the value is an integer.
Must call Format.Config.addUtilsToPrototype to be defined.
true
if the value is an integer.
Determines whether the passed value is a whole number (positive integer including 0
).
Must call Format.Config.addUtilsToPrototype to be defined.
true
if the value 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.addUtilsToPrototype to be defined.
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.addUtilsToPrototype to be defined.
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.addUtilsToPrototype to be defined.
The minimum number of digits to include in the format.
The maximum number of digits to include in the format.
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Must call Format.Config.addToStringOverload to be defined.
A standard or custom numeric format string.
The formatted numeric value.
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Must call Format.Config.addToStringOverload to be defined.
An object that supplies culture-specific formatting information.
The formatted numeric value.
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Must call Format.Config.addToStringOverload to be defined.
A standard or custom numeric format string.
An object that supplies culture-specific formatting information.
The formatted numeric value.
Generated using TypeDoc
Extends the built-in javascript
Number
object's prototype.Various Format.Config methods can be called in order to access the additional definitions, see each method for more details.