The library can also be used in Node.js.
npm install mz-math
Or using Yarn:
yarn add mz-svg
Call any mzMath API or function:
const { setDecimalPlaces } = require('mz-math'); const rounded = setDecimalPlaces(Math.PI, 2); console.log(rounded);