UNPKG

smart-round

Version:

Round big numbers with arbitrary precision

14 lines 512 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toBigJsRoundingModes = void 0; // 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", ]; const toBigJsRoundingModes = (roundingMode) => roundingModes.findIndex((r) => r === roundingMode); exports.toBigJsRoundingModes = toBigJsRoundingModes; //# sourceMappingURL=roundingModes.js.map