Round a number to a specific number of decimal places.
$ npm install --save rounder
var rounder = require('rounder');
rounder(1.5254325, 2);
//=> 1.53
rounder(1.5254325, 3);
//=> 1.525
Required
Type: number
The number to round.
Type: number
The number of digits after the decimal point to round to.
MIT © Nate Cavanaugh