Skip to content

Class: i32

Hierarchy

  • Number

    i32

Constructors

Properties

Methods

Constructors

constructor

new i32(value?): i32

Parameters

NameType
value?any

Returns

i32

Inherited from

Number.constructor

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:589

Properties

EPSILON

Static Readonly EPSILON: number

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.

Inherited from

Number.EPSILON

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts:217


MAX_SAFE_INTEGER

Static Readonly MAX_SAFE_INTEGER: number

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.

Inherited from

Number.MAX_SAFE_INTEGER

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts:252


MIN_SAFE_INTEGER

Static Readonly MIN_SAFE_INTEGER: number

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)).

Inherited from

Number.MIN_SAFE_INTEGER

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts:259


MAX_VALUE

Static Readonly MAX_VALUE: number

The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308.

Inherited from

Number.MAX_VALUE

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:594


MIN_VALUE

Static Readonly MIN_VALUE: number

The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324.

Inherited from

Number.MIN_VALUE

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:597


NaN

Static Readonly NaN: number

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.

Inherited from

Number.NaN

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:603


NEGATIVE_INFINITY

Static Readonly NEGATIVE_INFINITY: number

A value that is less than the largest negative number that can be represented in JavaScript. JavaScript displays NEGATIVE_INFINITY values as -infinity.

Inherited from

Number.NEGATIVE_INFINITY

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:609


POSITIVE_INFINITY

Static Readonly POSITIVE_INFINITY: number

A value greater than the largest number that can be represented in JavaScript. JavaScript displays POSITIVE_INFINITY values as infinity.

Inherited from

Number.POSITIVE_INFINITY

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:615

Methods

isFinite

isFinite(number): boolean

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.

Parameters

NameTypeDescription
numberunknownA numeric value.

Returns

boolean

Inherited from

Number.isFinite

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts:225


isInteger

isInteger(number): boolean

Returns true if the value passed is an integer, false otherwise.

Parameters

NameTypeDescription
numberunknownA numeric value.

Returns

boolean

Inherited from

Number.isInteger

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts:231


isNaN

isNaN(number): boolean

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.

Parameters

NameTypeDescription
numberunknownA numeric value.

Returns

boolean

Inherited from

Number.isNaN

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts:239


isSafeInteger

isSafeInteger(number): boolean

Returns true if the value passed is a safe integer.

Parameters

NameTypeDescription
numberunknownA numeric value.

Returns

boolean

Inherited from

Number.isSafeInteger

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts:245


parseFloat

parseFloat(string): number

Converts a string to a floating-point number.

Parameters

NameTypeDescription
stringstringA string that contains a floating-point number.

Returns

number

Inherited from

Number.parseFloat

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts:265


parseInt

parseInt(string, radix?): number

Converts A string to an integer.

Parameters

NameTypeDescription
stringstringA string to convert into a number.
radix?numberA value between 2 and 36 that specifies the base of the number in string. If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. All other strings are considered decimal.

Returns

number

Inherited from

Number.parseInt

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts:274


toString

toString(radix?): string

Returns a string representation of an object.

Parameters

NameTypeDescription
radix?numberSpecifies a radix for converting numeric values to strings. This value is only used for numbers.

Returns

string

Inherited from

Number.toString

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:564


toFixed

toFixed(fractionDigits?): string

Returns a string representing a number in fixed-point notation.

Parameters

NameTypeDescription
fractionDigits?numberNumber of digits after the decimal point. Must be in the range 0 - 20, inclusive.

Returns

string

Inherited from

Number.toFixed

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:570


toExponential

toExponential(fractionDigits?): string

Returns a string containing a number represented in exponential notation.

Parameters

NameTypeDescription
fractionDigits?numberNumber of digits after the decimal point. Must be in the range 0 - 20, inclusive.

Returns

string

Inherited from

Number.toExponential

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:576


toPrecision

toPrecision(precision?): string

Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.

Parameters

NameTypeDescription
precision?numberNumber of significant digits. Must be in the range 1 - 21, inclusive.

Returns

string

Inherited from

Number.toPrecision

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:582


valueOf

valueOf(): number

Returns the primitive value of the specified object.

Returns

number

Inherited from

Number.valueOf

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:585


toLocaleString

toLocaleString(locales?, options?): string

Converts a number to a string by using the current or specified locale.

Parameters

NameTypeDescription
locales?string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
options?NumberFormatOptionsAn object that contains one or more properties that specify comparison options.

Returns

string

Inherited from

Number.toLocaleString

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts:4525

toLocaleString(locales?, options?): string

Converts a number to a string by using the current or specified locale.

Parameters

NameTypeDescription
locales?LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
options?NumberFormatOptionsAn object that contains one or more properties that specify comparison options.

Returns

string

Inherited from

Number.toLocaleString

Defined in

node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.number.d.ts:27