Skip to main content

Class: BigNumber

Implements

  • Hexable

Exports

Constructors

Properties

Methods

Constructors

constructor

new BigNumber(constructorGuard, hex)

Parameters

NameType
constructorGuardany
hexstring

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

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:10


add

add(other): BigNumber

Parameters

NameType
otherBigNumberish

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:11


and

and(other): BigNumber

Parameters

NameType
otherBigNumberish

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:17


div

div(other): BigNumber

Parameters

NameType
otherBigNumberish

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:13


eq

eq(other): boolean

Parameters

NameType
otherBigNumberish

Returns

boolean

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:23


fromTwos

fromTwos(value): BigNumber

Parameters

NameType
valuenumber

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:8


gt

gt(other): boolean

Parameters

NameType
otherBigNumberish

Returns

boolean

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:26


gte

gte(other): boolean

Parameters

NameType
otherBigNumberish

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

NameType
otherBigNumberish

Returns

boolean

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:24


lte

lte(other): boolean

Parameters

NameType
otherBigNumberish

Returns

boolean

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:25


mask

mask(value): BigNumber

Parameters

NameType
valuenumber

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:20


mod

mod(other): BigNumber

Parameters

NameType
otherBigNumberish

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:15


mul

mul(other): BigNumber

Parameters

NameType
otherBigNumberish

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:14


or

or(other): BigNumber

Parameters

NameType
otherBigNumberish

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:18


pow

pow(other): BigNumber

Parameters

NameType
otherBigNumberish

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:16


shl

shl(value): BigNumber

Parameters

NameType
valuenumber

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:21


shr

shr(value): BigNumber

Parameters

NameType
valuenumber

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:22


sub

sub(other): BigNumber

Parameters

NameType
otherBigNumberish

Returns

BigNumber

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

NameType
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

NameType
valuenumber

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:9


xor

xor(other): BigNumber

Parameters

NameType
otherBigNumberish

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:19


from

Static from(value): BigNumber

Parameters

NameType
valueany

Returns

BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:35


isBigNumber

Static isBigNumber(value): value is BigNumber

Parameters

NameType
valueany

Returns

value is BigNumber

Defined in

submodules/cubist-node-sdk/node_modules/@ethersproject/bignumber/lib/bignumber.d.ts:36