roundup

1.0.2 • Public • Published

roundup

Rounds up to a specific unit like a spreadsheet ROUNDUP function

Installation

npm i -S roundup

Usage

const roundup = require("roundup");

roundup(12345, -1); // 12350
roundup(12345, -2); // 12400
roundup(12345.123, 1); // 12350.2
roundup(12345.123, 2); // 12350.13

License

MIT License

Package Sidebar

Install

npm i roundup

Weekly Downloads

25

Version

1.0.2

License

MIT

Unpacked Size

3.9 kB

Total Files

5

Last publish

Collaborators

  • jasony