gauss-round
v1.0.4
Published
gaussian rounding script
Downloads
2
Readme
gauss-round
Install
npm install --save gauss-round
Usage
import gaussRound from 'gauss-round';
// or
import gaussRound from 'gauss-round/dist/decimalOne'; // decimal 1 is default
// or
import gaussRound from 'gauss-round/dist/decimalTwo'; // decimal 2 is default
console.log(gaussRound(3.59, 1));
// > 3.6
console.log(gaussRound(45.3174, 2));
// > 45.32