• Parameters

    • value:
          | string
          | number
          | bigint
          | boolean

    Returns bigint

Properties

Methods

Properties

prototype: BigInt

Methods

  • 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

  • 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