smart-round
Version:
Round big numbers with arbitrary precision
10 lines • 350 B
JavaScript
// Use this to allow easier configuration for consumers, without them needing
// to import Big.js
const roundingModes = [
"round-down",
"round-half-up",
"round-half-even",
"round-up",
];
export const toBigJsRoundingModes = (roundingMode) => roundingModes.findIndex((r) => r === roundingMode);
//# sourceMappingURL=roundingModes.js.map