fixed-round
v1.0.2
Published
Math.round with fixed, formats a number using fixed-point notation and returns a number.
Downloads
1,086
Readme
fixed-round
Math.round with fixed, formats a number using fixed-point notation and returns a number.
Usage
npm i --save fixed-round
var round = require('fixed-round');
// round(number, toFixed);
round(125.34567, 2); // 125.35
round(125.34567); // 125
round(125.34567, -1); // 130
License
ISC@hustcc.