Hierarchy

  • BigInt

Constructors

Properties

d: Uint32Array
isNeg: boolean
n: i32 = 0
actualBits: i32 = 32
digitMask: u32 = ...
maxComba: i32 = 256
p: i32 = 28
precision: i32 = 5

Accessors

Methods

  • Returns a new {BigInt} instance from generic type {T}.

    Type Parameters

    • T

    Parameters

    • val: T

      the number as {BigInt}, {string}, or {number}

    Returns BigInt

    BigInt the new {BigInt} instance

  • Parameters

    • digits: Uint32Array
    • isNegative: boolean = false
    • n: i32 = digits.length
    • minSize: i32 = digits.length

    Returns BigInt