# to-decimal

> Convert percent to decimal

Latest version **2.0.0** (published 2015-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-decimal
pnpm add to-decimal
yarn add to-decimal
bun add to-decimal
```

## 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 | 2.0.0 |
| Published | 2015-05-25 |
| First published | 2015-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andreas Gillström |
| Maintainers | gillstrom |
| Keywords | calculate, convert, decimal, math, number, percent |

## Links

- npm: https://www.npmjs.com/package/to-decimal
- Repository: https://github.com/gillstrom/to-decimal
- Homepage: https://github.com/gillstrom/to-decimal#readme
- Issues: https://github.com/gillstrom/to-decimal/issues
- npm.io page: https://npm.io/package/to-decimal

## 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

- 2.0.0 (latest) — 2015-05-25
- 1.1.2 — 2015-05-24
- 1.1.1 — 2015-05-24
- 1.1.0 — 2015-05-24
- 1.0.0 — 2015-05-23
- 0.0.0 — 2015-05-23

## README

# to-decimal [![Build Status](https://travis-ci.org/gillstrom/to-decimal.svg?branch=master)](https://travis-ci.org/gillstrom/to-decimal)

> Convert percent to decimal


## Install

```
$ npm install --save to-decimal
```


## Usage

```js
var toDecimal = require('to-decimal');

toDecimal(65);
//=> 0.65

toDecimal(1234.50, {digits: 1});
//=> 12.3
```


### toDecimal(value, options)

Returns a `number`.

#### value

*Required*  
Type: `number`

Value to convert.

#### options

Type: `object`

Options to pass.

##### options.digits

Type: `number`

Number of digits after the decimal point.


## License

MIT © [Andreas Gillström](http://github.com/gillstrom)

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