BrandedNumber
sourceConstructors
new BrandedNumber<T extends string>(value: any): BrandedNumbersource
inherited from
Number.constructor
Properties
[species]: Tsource
EPSILON: numbersource
inherited from
Number.EPSILON
The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1 that is representable as a Number value, which is approximately: 2.2204460492503130808472633361816 x 10−16.
MAX_SAFE_INTEGER: numbersource
inherited from
Number.MAX_SAFE_INTEGER
The value of the largest integer n such that n and n + 1 are both exactly representable as a Number value. The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
MAX_VALUE: numbersource
inherited from
Number.MAX_VALUE
The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308.
MIN_SAFE_INTEGER: numbersource
inherited from
Number.MIN_SAFE_INTEGER
The value of the smallest integer n such that n and n − 1 are both exactly representable as a Number value. The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
MIN_VALUE: numbersource
inherited from
Number.MIN_VALUE
The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324.
NEGATIVE_INFINITY: numbersource
inherited from
Number.NEGATIVE_INFINITY
A value that is less than the largest negative number that can be represented in JavaScript. JavaScript displays NEGATIVE_INFINITY values as -infinity.
NaN: numbersource
inherited from
Number.NaN
A value that is not a number. In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
POSITIVE_INFINITY: numbersource
inherited from
Number.POSITIVE_INFINITY
A value greater than the largest number that can be represented in JavaScript. JavaScript displays POSITIVE_INFINITY values as infinity.
Methods
Static methods
from<T extends Number>(this: ProtectedCtor, value: number): Tsource
Instance methods
[custom](): numbersource
Inherited methods
toExponential(fractionDigits: number): stringsource
inherited from
Number.toExponential
Returns a string containing a number represented in exponential notation.
toFixed(fractionDigits: number): stringsource
inherited from
Number.toFixed
Returns a string representing a number in fixed-point notation.
toLocaleString(locales: string | string[], options: NumberFormatOptions): stringsource
inherited from
Number.toLocaleString
Converts a number to a string by using the current or specified locale.
toLocaleString(locales: LocalesArgument, options: NumberFormatOptions): stringsource
inherited from
Number.toLocaleString
Converts a number to a string by using the current or specified locale.
toPrecision(precision: number): stringsource
inherited from
Number.toPrecision
Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
toString(radix: number): stringsource
inherited from
Number.toString
Returns a string representation of an object.
valueOf(): numbersource
inherited from
Number.valueOf
Returns the primitive value of the specified object.
isFinite(number: unknown): booleansource
inherited from
Number.isFinite
Returns true if passed value is finite. Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a number. Only finite values of the type number, result in true.
isInteger(number: unknown): booleansource
inherited from
Number.isInteger
Returns true if the value passed is an integer, false otherwise.
isNaN(number: unknown): booleansource
inherited from
Number.isNaN
Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter to a number. Only values of the type number, that are also NaN, result in true.
isSafeInteger(number: unknown): booleansource
inherited from
Number.isSafeInteger
Returns true if the value passed is a safe integer.
parseFloat(string: string): numbersource
inherited from
Number.parseFloat
Converts a string to a floating-point number.
parseInt(string: string, radix: number): numbersource
inherited from
Number.parseInt
Converts A string to an integer.