UNPKG

@yoroi/common

Version:

The Common package of Yoroi SDK

16 lines 705 B
import { BigNumber } from 'bignumber.js'; /** * Converts an atomic value to its decimal representation. * * @param {Object} options - The options for the conversion. * @param {string} options.value - The atomic value to convert, * exponential e.g 1e+4 will result in 14, only numbers are taken, negative sign is ignored. * @param {number} options.decimals - The number of decimal places (positive), it will round down (BigNumber.ROUND_DOWN). * * @returns {BigNumber} The decimal representation from the atomic value. */ export declare function atomicToDecimal({ value, decimals, }: { value: string | bigint; decimals: number; }): BigNumber; //# sourceMappingURL=atomic-to-decimal.d.ts.map