smart-round
Version:
Round big numbers with arbitrary precision
10 lines • 385 B
TypeScript
import { BigSource } from "big.js";
import { RoundingMode } from "./roundingModes.js";
type Options = {
locale?: string;
roundingMode?: RoundingMode;
shouldFormat?: boolean;
};
export declare const smartRound: (maxPrecision: number, minDecimals: number, maxDecimals: number) => (input: BigSource, options?: Options) => string;
export {};
//# sourceMappingURL=index.d.ts.map