bankers-round
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

Bankers round function to reduce the accumulated error. Module written in TS.

Installation

npm i bankers-round --save
yarn add bankers-round

Using

// ES5
var { bankersRound } = require('bankers-round');

// ES6
import { bankersRound } from 'bankers-round';

bankersRound(4.5) //4
bankersRound(5.5) //6
bankersRound(0.045, 2) //0.04
bankersRound(0.055, 2) //0.06

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.7
    142
    • latest

Version History

Package Sidebar

Install

npm i bankers-round

Weekly Downloads

423

Version

1.0.7

License

ISC

Unpacked Size

11.2 kB

Total Files

13

Last publish

Collaborators

  • kret13