# round10

> Brings decimal adjustment to the Math object.

Latest version **1.0.3** (published 2015-10-26) · CC-BY-SA-2.5 license · 0 weekly downloads

## Install

```sh
npm install round10
pnpm add round10
yarn add round10
bun add round10
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2015-10-26 |
| First published | 2015-07-28 |
| Weekly downloads | 0 |
| License | CC-BY-SA-2.5 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Jakob Hohlfeld |
| Maintainers | jhohlfeld |
| Keywords | round, round10, mdn, Math, Math.round, precision, decimal, adjustment |

## Links

- npm: https://www.npmjs.com/package/round10
- Repository: https://github.com/jhohlfeld/round10
- Homepage: https://github.com/jhohlfeld/round10#readme
- Issues: https://github.com/jhohlfeld/round10/issues
- npm.io page: https://npm.io/package/round10

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2015-10-26
- 1.0.2 — 2015-07-28
- 1.0.1 — 2015-07-28
- 1.0.0 — 2015-07-28

## README

Inspired by [Decimal rounding polyfill by MDN](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Math/round#Decimal_rounding).

__Installation__

Install using npm:

```bash
$ npm install round10
```

__Usage__

Use in your project:

```bash
$ npm install --save round10
```

and in your code:

```javascript
var round10 = require('round10').round10;
round10(55.55, -1); // 55.6
```

Optionally, you may use the polyfill which extends the global Math object:

```javascript
require('round10').polyfill();
Math.round10(55.55, -1); // 55.6
```

__Check out the code__

```bash
$ git clone git@github.com:jhohlfeld/round10.git
$ cd round10
$ npm install
```

Test using [mocha](http://mochajs.org/):

```bash
$ npm install -g mocha
$ mocha test/test.js
```

---
_Source: https://npm.io/package/round10 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
