@aldea/compiler / "vendor/big-int" / BigInt
Class: BigInt
"vendor/big-int".BigInt
Table of contents
Constructors
Properties
- _add
- _addOne
- _andNot
- _baseSquare
- _div
- _divCore
- _divMod
- _divRemainder
- _logBigint
- _logNumber
- _mulComba
- _mulPartial
- _powBigint
- _powInt
- _squareComba
- _sub
- _subOne
- d
- divBasisPow
- grow
- inplaceDivInt
- inplaceMulInt
- isNeg
- leftShiftByAbsolute
- mulBasisPow
- n
- resize
- rightShiftByAbsolute
- rightShiftMustRoundDown
- trimLeadingZeros
- _and
- _or
- _xor
- actualBits
- addOp
- bitwiseAndOp
- bitwiseOrOp
- bitwiseXorOp
- digitMask
- eqOp
- fromDigits
- getEmptyResultContainer
- gtOp
- gteOp
- isPow2
- leftShift
- ltOp
- lteOp
- maxComba
- modOp
- mulOp
- neOp
- p
- powOp
- precision
- rightShift
- rightShiftByMaximum
- subOp
Accessors
Methods
- abs
- add
- addInt
- bitwiseAnd
- bitwiseNot
- bitwiseOr
- bitwiseXor
- compareTo
- copy
- countBits
- div
- div2
- divInt
- divMod
- divModInt
- divPowTwo
- eq
- gt
- gte
- isOdd
- isZero
- leftShift
- log
- log2
- lt
- lte
- magCompareTo
- mod
- modInt
- modPowTwo
- mul
- mul2
- mulInt
- mulPowTwo
- ne
- opposite
- pow
- rightShift
- roundedDiv
- roundedDivInt
- sqrt
- square
- sub
- subInt
- toInt32
- toInt64
- toString
- toUInt32
- toUInt64
- add
- bitwiseAnd
- bitwiseNot
- bitwiseOr
- bitwiseXor
- div
- divOp
- eq
- from
- fromInt16
- fromInt32
- fromInt64
- fromString
- fromUInt16
- fromUInt32
- fromUInt64
- gt
- gte
- lt
- lte
- mod
- mul
- ne
- pow
- sub
Constructors
constructor
• new BigInt(): BigInt
Returns
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
Defined in
index.d.ts:290
ONE
• get
ONE(): BigInt
Returns
Defined in
index.d.ts:289
ZERO
• get
ZERO(): BigInt
Returns
Defined in
index.d.ts:288
Methods
abs
▸ abs(): BigInt
Returns
Defined in
index.d.ts:208
add
▸ add<T
>(other
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
Defined in
index.d.ts:226
addInt
▸ addInt(b
): BigInt
Parameters
Name | Type |
---|---|
b | number |
Returns
Defined in
index.d.ts:267
bitwiseAnd
▸ bitwiseAnd<T
>(other
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
Defined in
index.d.ts:277
bitwiseNot
▸ bitwiseNot(): BigInt
Returns
Defined in
index.d.ts:276
bitwiseOr
▸ bitwiseOr<T
>(other
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
Defined in
index.d.ts:278
bitwiseXor
▸ bitwiseXor<T
>(other
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
Defined in
index.d.ts:279
compareTo
▸ compareTo(other
): number
Parameters
Name | Type |
---|---|
other | BigInt |
Returns
number
Defined in
index.d.ts:224
copy
▸ copy(): BigInt
Returns
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
Name | Type |
---|---|
other | T |
Returns
Defined in
index.d.ts:259
div2
▸ div2(): BigInt
Returns
Defined in
index.d.ts:233
divInt
▸ divInt(b
): BigInt
Parameters
Name | Type |
---|---|
b | number |
Returns
Defined in
index.d.ts:271
divMod
▸ divMod<T
>(other
): BigInt
[]
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
BigInt
[]
Defined in
index.d.ts:261
divModInt
▸ divModInt(b
): BigInt
[]
Parameters
Name | Type |
---|---|
b | number |
Returns
BigInt
[]
Defined in
index.d.ts:274
divPowTwo
▸ divPowTwo(k
): BigInt
Parameters
Name | Type |
---|---|
k | number |
Returns
Defined in
index.d.ts:237
eq
▸ eq<T
>(other
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
boolean
Defined in
index.d.ts:218
gt
▸ gt<T
>(other
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
boolean
Defined in
index.d.ts:222
gte
▸ gte<T
>(other
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
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
Name | Type |
---|---|
k | number |
Returns
Defined in
index.d.ts:239
log
▸ log<T
>(base
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
base | T |
Returns
Defined in
index.d.ts:256
log2
▸ log2(): BigInt
Returns
Defined in
index.d.ts:255
lt
▸ lt<T
>(other
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
boolean
Defined in
index.d.ts:220
lte
▸ lte<T
>(other
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
boolean
Defined in
index.d.ts:221
magCompareTo
▸ magCompareTo(other
): number
Parameters
Name | Type |
---|---|
other | BigInt |
Returns
number
Defined in
index.d.ts:225
mod
▸ mod<T
>(other
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
Defined in
index.d.ts:260
modInt
▸ modInt(b
): number
Parameters
Name | Type |
---|---|
b | number |
Returns
number
Defined in
index.d.ts:273
modPowTwo
▸ modPowTwo(k
): BigInt
Parameters
Name | Type |
---|---|
k | number |
Returns
Defined in
index.d.ts:238
mul
▸ mul<T
>(other
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
Defined in
index.d.ts:245
mul2
▸ mul2(): BigInt
Returns
Defined in
index.d.ts:232
mulInt
▸ mulInt(b
): BigInt
Parameters
Name | Type |
---|---|
b | number |
Returns
Defined in
index.d.ts:269
mulPowTwo
▸ mulPowTwo(k
): BigInt
Parameters
Name | Type |
---|---|
k | number |
Returns
Defined in
index.d.ts:236
ne
▸ ne<T
>(other
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
boolean
Defined in
index.d.ts:219
opposite
▸ opposite(): BigInt
Returns
Defined in
index.d.ts:207
pow
▸ pow<T
>(val
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
val | T |
Returns
Defined in
index.d.ts:248
rightShift
▸ rightShift(k
): BigInt
Parameters
Name | Type |
---|---|
k | number |
Returns
Defined in
index.d.ts:240
roundedDiv
▸ roundedDiv<T
>(other
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
Defined in
index.d.ts:266
roundedDivInt
▸ roundedDivInt(b
): BigInt
Parameters
Name | Type |
---|---|
b | number |
Returns
Defined in
index.d.ts:275
sqrt
▸ sqrt(): BigInt
Returns
Defined in
index.d.ts:254
square
▸ square(): BigInt
Returns
Defined in
index.d.ts:251
sub
▸ sub<T
>(other
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
other | T |
Returns
Defined in
index.d.ts:227
subInt
▸ subInt(b
): BigInt
Parameters
Name | Type |
---|---|
b | number |
Returns
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
Name | Type |
---|---|
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
Name | Type |
---|---|
left | T |
right | U |
Returns
Defined in
index.d.ts:303
bitwiseAnd
▸ bitwiseAnd<T
, U
>(a
, b
): BigInt
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
a | T |
b | U |
Returns
Defined in
index.d.ts:318
bitwiseNot
▸ bitwiseNot<T
>(a
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
a | T |
Returns
Defined in
index.d.ts:317
bitwiseOr
▸ bitwiseOr<T
, U
>(a
, b
): BigInt
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
a | T |
b | U |
Returns
Defined in
index.d.ts:320
bitwiseXor
▸ bitwiseXor<T
, U
>(a
, b
): BigInt
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
a | T |
b | U |
Returns
Defined in
index.d.ts:322
div
▸ div<T
, U
>(left
, right
): BigInt
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
Returns
Defined in
index.d.ts:309
divOp
▸ divOp(left
, right
): BigInt
Parameters
Name | Type |
---|---|
left | BigInt |
right | BigInt |
Returns
Defined in
index.d.ts:310
eq
▸ eq<T
, U
>(left
, right
): boolean
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
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
Name | Type | Description |
---|---|---|
val | T | the number as {BigInt}, {string}, or |
Returns
BigInt the new {BigInt} instance
Defined in
index.d.ts:197
fromInt16
▸ fromInt16(val
): BigInt
Parameters
Name | Type |
---|---|
val | number |
Returns
Defined in
index.d.ts:202
fromInt32
▸ fromInt32(val
): BigInt
Parameters
Name | Type |
---|---|
val | number |
Returns
Defined in
index.d.ts:203
fromInt64
▸ fromInt64(val
): BigInt
Parameters
Name | Type |
---|---|
val | number |
Returns
Defined in
index.d.ts:204
fromString
▸ fromString(bigInteger
, radix?
): BigInt
Parameters
Name | Type |
---|---|
bigInteger | string |
radix? | number |
Returns
Defined in
index.d.ts:198
fromUInt16
▸ fromUInt16(val
): BigInt
Parameters
Name | Type |
---|---|
val | number |
Returns
Defined in
index.d.ts:199
fromUInt32
▸ fromUInt32(val
): BigInt
Parameters
Name | Type |
---|---|
val | number |
Returns
Defined in
index.d.ts:200
fromUInt64
▸ fromUInt64(val
): BigInt
Parameters
Name | Type |
---|---|
val | number |
Returns
Defined in
index.d.ts:201
gt
▸ gt<T
, U
>(left
, right
): boolean
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
Returns
boolean
Defined in
index.d.ts:299
gte
▸ gte<T
, U
>(left
, right
): boolean
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
Returns
boolean
Defined in
index.d.ts:301
lt
▸ lt<T
, U
>(left
, right
): boolean
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
Returns
boolean
Defined in
index.d.ts:295
lte
▸ lte<T
, U
>(left
, right
): boolean
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
Returns
boolean
Defined in
index.d.ts:297
mod
▸ mod<T
, U
>(left
, right
): BigInt
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
Returns
Defined in
index.d.ts:311
mul
▸ mul<T
, U
>(left
, right
): BigInt
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
Returns
Defined in
index.d.ts:307
ne
▸ ne<T
, U
>(left
, right
): boolean
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
Returns
boolean
Defined in
index.d.ts:293
pow
▸ pow<T
>(base
, k
): BigInt
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
base | T |
k | number |
Returns
Defined in
index.d.ts:313
sub
▸ sub<T
, U
>(left
, right
): BigInt
Type parameters
Name |
---|
T |
U |
Parameters
Name | Type |
---|---|
left | T |
right | U |
Returns
Defined in
index.d.ts:305