interface BigIntConstructor { prototype: BigInt; asIntN(bits: number, int: bigint): bigint; asUintN(bits: number, int: bigint): bigint; (value: string | number | bigint | boolean): bigint;} - BigIntConstructor(value: string | number | bigint | boolean): bigint
Parameters
- value: string | number | bigint | boolean
Returns bigint
Properties
Methods
asIntN
- asIntN(bits: number, int: bigint): bigint
Returns bigint
asUintN
- asUintN(bits: number, int: bigint): bigint
Returns bigint
Interprets the low bits of a BigInt as a 2's-complement signed integer. All higher bits are discarded.