UNPKG

@node-dlc/core

Version:
14 lines (13 loc) 391 B
import BigNumber from 'bignumber.js'; /** * Extract the precision of a number * @param num * @returns The precision of the number */ export declare const getPrecision: (num: BigNumber) => number; /** * Creates a precise number from a precision * @param precision * @returns The number with the given precision */ export declare const fromPrecision: (precision: number) => BigNumber;