UNPKG

emmet.sdk

Version:
10 lines 435 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.roundToDecimalPlaces = void 0; function roundToDecimalPlaces(value, decimalPlaces) { const multiplier = 10 ** decimalPlaces; const roundedValue = Math.round(value * multiplier) / multiplier; return roundedValue.toFixed(decimalPlaces); } exports.roundToDecimalPlaces = roundToDecimalPlaces; //# sourceMappingURL=roundToDecimalPlaces.js.map