tokenlon-sdk
Version:
imToken Tokenlon API for node
13 lines (12 loc) • 656 B
TypeScript
import { BigNumber as BN } from '@0xproject/utils';
export declare const isBigNumber: (v: any) => boolean;
export declare const isNumberLike: (n: any) => boolean;
export declare const toBN: (value: any) => BN;
/**
* Returns a string representing the value of this BigNumber in normal (fixed-point) notation rounded to dp decimal places using rounding mode rm.
* @param {Number} n
* @param {Number} dp [decimal places, 0 to 1e+9]
* @param {Number} rm [rounding modes 0 to 6, Default value: 1 ROUND_DOWN ] http://mikemcl.github.io/bignumber.js/#round
* @return {String}
*/
export declare const toFixed: (n: any, dp?: number, rm?: number) => string;