@johnsunam/roundoff

1.0.1 • Public • Published

roundoff

This moudule simply roundoff the floating number to the decimal place you supplied.

Installation

npm install --save roundoff

Usage

const RoundOff = require('roundoff');

const roundValue = RoundOff(4.5678, 3);
console.log(roundValue);
// 4.568 should be the rounded value

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @johnsunam/roundoff

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    1.59 kB

    Total Files

    4

    Last publish

    Collaborators

    • johnsunam