Class: BigNumber
Implements
Hexable
Exports
Constructors
Properties
Methods
- abs
- add
- and
- div
- eq
- fromTwos
- gt
- gte
- isNegative
- isZero
- lt
- lte
- mask
- mod
- mul
- or
- pow
- shl
- shr
- sub
- toBigInt
- toHexString
- toJSON
- toNumber
- toString
- toTwos
- xor
- from
- isBigNumber
Constructors
constructor
• new BigNumber(constructorGuard
, hex
)
Parameters
Name | Type |
---|---|
constructorGuard | any |
hex | string |
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:7
Properties
_hex
• Readonly
_hex: string
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:5
_isBigNumber
• Readonly
_isBigNumber: boolean
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:6
Methods
abs
▸ abs(): BigNumber
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:10
add
▸ add(other
): BigNumber
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:11
and
▸ and(other
): BigNumber
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:17
div
▸ div(other
): BigNumber
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:13
eq
▸ eq(other
): boolean
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
boolean
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:23
fromTwos
▸ fromTwos(value
): BigNumber
Parameters
Name | Type |
---|---|
value | number |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:8
gt
▸ gt(other
): boolean
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
boolean
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:26
gte
▸ gte(other
): boolean
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
boolean
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:27
isNegative
▸ isNegative(): boolean
Returns
boolean
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:28
isZero
▸ isZero(): boolean
Returns
boolean
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:29
lt
▸ lt(other
): boolean
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
boolean
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:24
lte
▸ lte(other
): boolean
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
boolean
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:25
mask
▸ mask(value
): BigNumber
Parameters
Name | Type |
---|---|
value | number |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:20
mod
▸ mod(other
): BigNumber
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:15
mul
▸ mul(other
): BigNumber
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:14
or
▸ or(other
): BigNumber
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:18
pow
▸ pow(other
): BigNumber
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:16
shl
▸ shl(value
): BigNumber
Parameters
Name | Type |
---|---|
value | number |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:21
shr
▸ shr(value
): BigNumber
Parameters
Name | Type |
---|---|
value | number |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:22
sub
▸ sub(other
): BigNumber
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:12
toBigInt
▸ toBigInt(): bigint
Returns
bigint
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:31
toHexString
▸ toHexString(): string
Returns
string
Implementation of
Hexable.toHexString
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:33
toJSON
▸ toJSON(key?
): any
Parameters
Name | Type |
---|---|
key? | string |
Returns
any
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:34
toNumber
▸ toNumber(): number
Returns
number
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:30
toString
▸ toString(): string
Returns
string
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:32
toTwos
▸ toTwos(value
): BigNumber
Parameters
Name | Type |
---|---|
value | number |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:9
xor
▸ xor(other
): BigNumber
Parameters
Name | Type |
---|---|
other | BigNumberish |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:19
from
▸ Static
from(value
): BigNumber
Parameters
Name | Type |
---|---|
value | any |
Returns
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:35
isBigNumber
▸ Static
isBigNumber(value
): value is BigNumber
Parameters
Name | Type |
---|---|
value | any |
Returns
value is BigNumber
Defined in
submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:36