Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BigIntConstructor

Hierarchy

  • BigIntConstructor

Callable

  • __call(value?: any): bigint
  • Parameters

    • Optional value: any

    Returns bigint

Index

Properties

Methods

Properties

prototype

prototype: BigInt

Methods

asIntN

  • asIntN(bits: number, int: bigint): bigint
  • Interprets the low bits of a BigInt as a 2's-complement signed integer. All higher bits are discarded.

    Parameters

    • bits: number

      The number of low bits to use

    • int: bigint

      The BigInt whose bits to extract

    Returns bigint

asUintN

  • asUintN(bits: number, int: bigint): bigint
  • Interprets the low bits of a BigInt as an unsigned integer. All higher bits are discarded.

    Parameters

    • bits: number

      The number of low bits to use

    • int: bigint

      The BigInt whose bits to extract

    Returns bigint