getNumberFromBN
const getNumberFromBN: (value, decimals) => number;
getNumberFromBN
const getNumberFromBN: (value, decimals) => number;Defined in: packages/common/dist/esm/index.d.ts:32
Used for token amounts conversion from their Big Number representation to number. Get value in the highest units from BN representation of the same value in the smallest units.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | BN | Big Number representation of value in the smallest units. |
decimals | number | Number of decimals the token has. |
Returns
number