toBigNumber

Convert a given number or hexadecimal string to a BigNumber

Usage

visionWeb.toBigNumber(number);

Parameters

ParameterDescriptionTypeDefault
numberNumberString-number in hexadecimal formatnumber | string

Returns

BigNumber-BigNumber instance

Example

visionWeb.toBigNumber("100000000000000000000001");
> BigNumber { s: 1, e: 23, c: [ 1000000000, 1 ] }