js-round
Library for correct rounding JS number
const {round} = require('js-round'); // import {round} from 'js-round';
const nubmer = round(123.456, 2);
assert number === 123.46
Library for rounding JS numbers
Homepage Repository npm JavaScript Download
Library for correct rounding JS number
const {round} = require('js-round'); // import {round} from 'js-round';
const nubmer = round(123.456, 2);
assert number === 123.46