Skip to content

@aldea/compiler / "vendor/big-int" / BigInt

Class: BigInt

"vendor/big-int".BigInt

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new BigInt(): BigInt

Returns

BigInt

Defined in

index.d.ts:190

Properties

_add

Private _add: any

Defined in

index.d.ts:228


_addOne

Private _addOne: any

Defined in

index.d.ts:230


_andNot

Private _andNot: any

Defined in

index.d.ts:281


_baseSquare

Private _baseSquare: any

Defined in

index.d.ts:252


_div

Private _div: any

Defined in

index.d.ts:262


_divCore

Private _divCore: any

Defined in

index.d.ts:265


_divMod

Private _divMod: any

Defined in

index.d.ts:264


_divRemainder

Private _divRemainder: any

Defined in

index.d.ts:263


_logBigint

Private _logBigint: any

Defined in

index.d.ts:258


_logNumber

Private _logNumber: any

Defined in

index.d.ts:257


_mulComba

Private _mulComba: any

Defined in

index.d.ts:247


_mulPartial

Private _mulPartial: any

Defined in

index.d.ts:246


_powBigint

Private _powBigint: any

Defined in

index.d.ts:249


_powInt

Private _powInt: any

Defined in

index.d.ts:250


_squareComba

Private _squareComba: any

Defined in

index.d.ts:253


_sub

Private _sub: any

Defined in

index.d.ts:229


_subOne

Private _subOne: any

Defined in

index.d.ts:231


d

Private d: any

Defined in

index.d.ts:181


divBasisPow

Private divBasisPow: any

Defined in

index.d.ts:235


grow

Private grow: any

Defined in

index.d.ts:212


inplaceDivInt

Private inplaceDivInt: any

Defined in

index.d.ts:272


inplaceMulInt

Private inplaceMulInt: any

Defined in

index.d.ts:270


isNeg

Private isNeg: any

Defined in

index.d.ts:183


leftShiftByAbsolute

Private leftShiftByAbsolute: any

Defined in

index.d.ts:241


mulBasisPow

Private mulBasisPow: any

Defined in

index.d.ts:234


n

Private n: any

Defined in

index.d.ts:182


resize

Private resize: any

Defined in

index.d.ts:211


rightShiftByAbsolute

Private rightShiftByAbsolute: any

Defined in

index.d.ts:242


rightShiftMustRoundDown

Private rightShiftMustRoundDown: any

Defined in

index.d.ts:243


trimLeadingZeros

Private trimLeadingZeros: any

Defined in

index.d.ts:210


_and

Static Private _and: any

Defined in

index.d.ts:280


_or

Static Private _or: any

Defined in

index.d.ts:282


_xor

Static Private _xor: any

Defined in

index.d.ts:283


actualBits

Static Private Readonly actualBits: any

Defined in

index.d.ts:186


addOp

Static Private addOp: any

Defined in

index.d.ts:304


bitwiseAndOp

Static Private bitwiseAndOp: any

Defined in

index.d.ts:319


bitwiseOrOp

Static Private bitwiseOrOp: any

Defined in

index.d.ts:321


bitwiseXorOp

Static Private bitwiseXorOp: any

Defined in

index.d.ts:323


digitMask

Static Private Readonly digitMask: any

Defined in

index.d.ts:188


eqOp

Static Private eqOp: any

Defined in

index.d.ts:292


fromDigits

Static Private fromDigits: any

Defined in

index.d.ts:205


getEmptyResultContainer

Static Private getEmptyResultContainer: any

Defined in

index.d.ts:209


gtOp

Static Private gtOp: any

Defined in

index.d.ts:300


gteOp

Static Private gteOp: any

Defined in

index.d.ts:302


isPow2

Static Private isPow2: any

Defined in

index.d.ts:287


leftShift

Static Private leftShift: any

Defined in

index.d.ts:315


ltOp

Static Private ltOp: any

Defined in

index.d.ts:296


lteOp

Static Private lteOp: any

Defined in

index.d.ts:298


maxComba

Static Private Readonly maxComba: any

Defined in

index.d.ts:187


modOp

Static Private modOp: any

Defined in

index.d.ts:312


mulOp

Static Private mulOp: any

Defined in

index.d.ts:308


neOp

Static Private neOp: any

Defined in

index.d.ts:294


p

Static Private Readonly p: any

Defined in

index.d.ts:185


powOp

Static Private powOp: any

Defined in

index.d.ts:314


precision

Static Private Readonly precision: any

Defined in

index.d.ts:189


rightShift

Static Private rightShift: any

Defined in

index.d.ts:316


rightShiftByMaximum

Static Private rightShiftByMaximum: any

Defined in

index.d.ts:244


subOp

Static Private subOp: any

Defined in

index.d.ts:306

Accessors

isNegative

get isNegative(): boolean

Returns

boolean

Defined in

index.d.ts:184


NEG_ONE

get NEG_ONE(): BigInt

Returns

BigInt

Defined in

index.d.ts:290


ONE

get ONE(): BigInt

Returns

BigInt

Defined in

index.d.ts:289


ZERO

get ZERO(): BigInt

Returns

BigInt

Defined in

index.d.ts:288

Methods

abs

abs(): BigInt

Returns

BigInt

Defined in

index.d.ts:208


add

add<T>(other): BigInt

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt

Defined in

index.d.ts:226


addInt

addInt(b): BigInt

Parameters

NameType
bnumber

Returns

BigInt

Defined in

index.d.ts:267


bitwiseAnd

bitwiseAnd<T>(other): BigInt

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt

Defined in

index.d.ts:277


bitwiseNot

bitwiseNot(): BigInt

Returns

BigInt

Defined in

index.d.ts:276


bitwiseOr

bitwiseOr<T>(other): BigInt

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt

Defined in

index.d.ts:278


bitwiseXor

bitwiseXor<T>(other): BigInt

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt

Defined in

index.d.ts:279


compareTo

compareTo(other): number

Parameters

NameType
otherBigInt

Returns

number

Defined in

index.d.ts:224


copy

copy(): BigInt

Returns

BigInt

Defined in

index.d.ts:206


countBits

countBits(): number

Returns

number

Defined in

index.d.ts:284


div

div<T>(other): BigInt

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt

Defined in

index.d.ts:259


div2

div2(): BigInt

Returns

BigInt

Defined in

index.d.ts:233


divInt

divInt(b): BigInt

Parameters

NameType
bnumber

Returns

BigInt

Defined in

index.d.ts:271


divMod

divMod<T>(other): BigInt[]

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt[]

Defined in

index.d.ts:261


divModInt

divModInt(b): BigInt[]

Parameters

NameType
bnumber

Returns

BigInt[]

Defined in

index.d.ts:274


divPowTwo

divPowTwo(k): BigInt

Parameters

NameType
knumber

Returns

BigInt

Defined in

index.d.ts:237


eq

eq<T>(other): boolean

Type parameters

Name
T

Parameters

NameType
otherT

Returns

boolean

Defined in

index.d.ts:218


gt

gt<T>(other): boolean

Type parameters

Name
T

Parameters

NameType
otherT

Returns

boolean

Defined in

index.d.ts:222


gte

gte<T>(other): boolean

Type parameters

Name
T

Parameters

NameType
otherT

Returns

boolean

Defined in

index.d.ts:223


isOdd

isOdd(): boolean

Returns

boolean

Defined in

index.d.ts:285


isZero

isZero(): boolean

Returns

boolean

Defined in

index.d.ts:286


leftShift

leftShift(k): BigInt

Parameters

NameType
knumber

Returns

BigInt

Defined in

index.d.ts:239


log

log<T>(base): BigInt

Type parameters

Name
T

Parameters

NameType
baseT

Returns

BigInt

Defined in

index.d.ts:256


log2

log2(): BigInt

Returns

BigInt

Defined in

index.d.ts:255


lt

lt<T>(other): boolean

Type parameters

Name
T

Parameters

NameType
otherT

Returns

boolean

Defined in

index.d.ts:220


lte

lte<T>(other): boolean

Type parameters

Name
T

Parameters

NameType
otherT

Returns

boolean

Defined in

index.d.ts:221


magCompareTo

magCompareTo(other): number

Parameters

NameType
otherBigInt

Returns

number

Defined in

index.d.ts:225


mod

mod<T>(other): BigInt

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt

Defined in

index.d.ts:260


modInt

modInt(b): number

Parameters

NameType
bnumber

Returns

number

Defined in

index.d.ts:273


modPowTwo

modPowTwo(k): BigInt

Parameters

NameType
knumber

Returns

BigInt

Defined in

index.d.ts:238


mul

mul<T>(other): BigInt

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt

Defined in

index.d.ts:245


mul2

mul2(): BigInt

Returns

BigInt

Defined in

index.d.ts:232


mulInt

mulInt(b): BigInt

Parameters

NameType
bnumber

Returns

BigInt

Defined in

index.d.ts:269


mulPowTwo

mulPowTwo(k): BigInt

Parameters

NameType
knumber

Returns

BigInt

Defined in

index.d.ts:236


ne

ne<T>(other): boolean

Type parameters

Name
T

Parameters

NameType
otherT

Returns

boolean

Defined in

index.d.ts:219


opposite

opposite(): BigInt

Returns

BigInt

Defined in

index.d.ts:207


pow

pow<T>(val): BigInt

Type parameters

Name
T

Parameters

NameType
valT

Returns

BigInt

Defined in

index.d.ts:248


rightShift

rightShift(k): BigInt

Parameters

NameType
knumber

Returns

BigInt

Defined in

index.d.ts:240


roundedDiv

roundedDiv<T>(other): BigInt

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt

Defined in

index.d.ts:266


roundedDivInt

roundedDivInt(b): BigInt

Parameters

NameType
bnumber

Returns

BigInt

Defined in

index.d.ts:275


sqrt

sqrt(): BigInt

Returns

BigInt

Defined in

index.d.ts:254


square

square(): BigInt

Returns

BigInt

Defined in

index.d.ts:251


sub

sub<T>(other): BigInt

Type parameters

Name
T

Parameters

NameType
otherT

Returns

BigInt

Defined in

index.d.ts:227


subInt

subInt(b): BigInt

Parameters

NameType
bnumber

Returns

BigInt

Defined in

index.d.ts:268


toInt32

toInt32(): number

Returns

number

Defined in

index.d.ts:214


toInt64

toInt64(): number

Returns

number

Defined in

index.d.ts:215


toString

toString(radix?): string

Parameters

NameType
radix?number

Returns

string

Defined in

index.d.ts:213


toUInt32

toUInt32(): number

Returns

number

Defined in

index.d.ts:216


toUInt64

toUInt64(): number

Returns

number

Defined in

index.d.ts:217


add

add<T, U>(left, right): BigInt

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

BigInt

Defined in

index.d.ts:303


bitwiseAnd

bitwiseAnd<T, U>(a, b): BigInt

Type parameters

Name
T
U

Parameters

NameType
aT
bU

Returns

BigInt

Defined in

index.d.ts:318


bitwiseNot

bitwiseNot<T>(a): BigInt

Type parameters

Name
T

Parameters

NameType
aT

Returns

BigInt

Defined in

index.d.ts:317


bitwiseOr

bitwiseOr<T, U>(a, b): BigInt

Type parameters

Name
T
U

Parameters

NameType
aT
bU

Returns

BigInt

Defined in

index.d.ts:320


bitwiseXor

bitwiseXor<T, U>(a, b): BigInt

Type parameters

Name
T
U

Parameters

NameType
aT
bU

Returns

BigInt

Defined in

index.d.ts:322


div

div<T, U>(left, right): BigInt

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

BigInt

Defined in

index.d.ts:309


divOp

divOp(left, right): BigInt

Parameters

NameType
leftBigInt
rightBigInt

Returns

BigInt

Defined in

index.d.ts:310


eq

eq<T, U>(left, right): boolean

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

boolean

Defined in

index.d.ts:291


from

from<T>(val): BigInt

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

Type parameters

Name
T

Parameters

NameTypeDescription
valTthe number as {BigInt}, {string}, or

Returns

BigInt

BigInt the new {BigInt} instance

Defined in

index.d.ts:197


fromInt16

fromInt16(val): BigInt

Parameters

NameType
valnumber

Returns

BigInt

Defined in

index.d.ts:202


fromInt32

fromInt32(val): BigInt

Parameters

NameType
valnumber

Returns

BigInt

Defined in

index.d.ts:203


fromInt64

fromInt64(val): BigInt

Parameters

NameType
valnumber

Returns

BigInt

Defined in

index.d.ts:204


fromString

fromString(bigInteger, radix?): BigInt

Parameters

NameType
bigIntegerstring
radix?number

Returns

BigInt

Defined in

index.d.ts:198


fromUInt16

fromUInt16(val): BigInt

Parameters

NameType
valnumber

Returns

BigInt

Defined in

index.d.ts:199


fromUInt32

fromUInt32(val): BigInt

Parameters

NameType
valnumber

Returns

BigInt

Defined in

index.d.ts:200


fromUInt64

fromUInt64(val): BigInt

Parameters

NameType
valnumber

Returns

BigInt

Defined in

index.d.ts:201


gt

gt<T, U>(left, right): boolean

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

boolean

Defined in

index.d.ts:299


gte

gte<T, U>(left, right): boolean

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

boolean

Defined in

index.d.ts:301


lt

lt<T, U>(left, right): boolean

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

boolean

Defined in

index.d.ts:295


lte

lte<T, U>(left, right): boolean

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

boolean

Defined in

index.d.ts:297


mod

mod<T, U>(left, right): BigInt

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

BigInt

Defined in

index.d.ts:311


mul

mul<T, U>(left, right): BigInt

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

BigInt

Defined in

index.d.ts:307


ne

ne<T, U>(left, right): boolean

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

boolean

Defined in

index.d.ts:293


pow

pow<T>(base, k): BigInt

Type parameters

Name
T

Parameters

NameType
baseT
knumber

Returns

BigInt

Defined in

index.d.ts:313


sub

sub<T, U>(left, right): BigInt

Type parameters

Name
T
U

Parameters

NameType
leftT
rightU

Returns

BigInt

Defined in

index.d.ts:305