ViewOffset
sourceConstructors
new ViewOffset(value: any): ViewOffsetsource
inherited from
BrandedNumber<"ViewOffset">.constructor
Properties
[species]: "ViewOffset"source
inherited from
BrandedNumber.[species]
EPSILON: numbersource
inherited from
BrandedNumber.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
BrandedNumber.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
BrandedNumber.MAX_VALUE
The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308.
MIN_SAFE_INTEGER: numbersource
inherited from
BrandedNumber.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
BrandedNumber.MIN_VALUE
The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324.
NEGATIVE_INFINITY: numbersource
inherited from
BrandedNumber.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
BrandedNumber.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
BrandedNumber.POSITIVE_INFINITY
A value greater than the largest number that can be represented in JavaScript. JavaScript displays POSITIVE_INFINITY values as infinity.
Inherited methods
[custom](): numbersource
inherited from
BrandedNumber.[custom]
toExponential(fractionDigits: number): stringsource
inherited from
BrandedNumber.toExponential
Returns a string containing a number represented in exponential notation.
toFixed(fractionDigits: number): stringsource
inherited from
BrandedNumber.toFixed
Returns a string representing a number in fixed-point notation.
toLocaleString(locales: string | string[], options: NumberFormatOptions): stringsource
inherited from
BrandedNumber.toLocaleString
Converts a number to a string by using the current or specified locale.
toLocaleString(locales: LocalesArgument, options: NumberFormatOptions): stringsource
inherited from
BrandedNumber.toLocaleString
Converts a number to a string by using the current or specified locale.
toPrecision(precision: number): stringsource
inherited from
BrandedNumber.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
BrandedNumber.toString
Returns a string representation of an object.
valueOf(): numbersource
inherited from
BrandedNumber.valueOf
Returns the primitive value of the specified object.
from<T extends Number>(this: ProtectedCtor<T>, value: number): Tsource
inherited from
BrandedNumber.from
isFinite(number: unknown): booleansource
inherited from
BrandedNumber.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
BrandedNumber.isInteger
Returns true if the value passed is an integer, false otherwise.
isNaN(number: unknown): booleansource
inherited from
BrandedNumber.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
BrandedNumber.isSafeInteger
Returns true if the value passed is a safe integer.
parseFloat(string: string): numbersource
inherited from
BrandedNumber.parseFloat
Converts a string to a floating-point number.
parseInt(string: string, radix: number): numbersource
inherited from
BrandedNumber.parseInt
Converts A string to an integer.