gauss-round

1.0.4 • Public • Published

gauss-round

NPM version Downloads

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
 

Readme

Keywords

Package Sidebar

Install

npm i gauss-round

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • alexfoxjs
  • zular