Détail du package

fixed-round

TCharts2.3kISC1.0.2

Math.round with fixed, formats a number using fixed-point notation and returns a number.

round, toFixed, fixed-round

readme

fixed-round

Math.round with fixed, formats a number using fixed-point notation and returns a number.

Build Status Coverage Status npm npm download

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.