UNPKG

js-big-decimal

Version:

Work with large numbers on the client side. Round them off to any required precision.

9 lines (8 loc) 256 B
import { RoundingModes } from './roundingModes'; /** * * @param input the number to round * @param n precision * @param mode Rounding Mode */ export declare function roundOff(input: number | string | bigint, n?: number, mode?: RoundingModes): string;