# decimal-to-percent

> Convert a decimal proportion to a percentage string

Latest version **1.0.1** (published 2016-09-27) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2016-09-27 |
| First published | 2016-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | decimal, percentage, number, string, round, precision |

## Links

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

## Dependencies (2)

- [precision](https://npm.io/package/precision.md) ~1.0.1
- [round-precision](https://npm.io/package/round-precision.md) ~1.0.0

## 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.1 (latest) — 2016-09-27
- 1.0.0 — 2016-09-22

## README

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

> Convert a decimal proportion to a percentage string

Converts any valid decimal value to a percentage string with no rounding or range limitations.

## Install

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


## Usage

```js
var toPercent = require('decimal-to-percent')

toPercent(0.1)
//=> 10%

toPercent(-0.1)
//=> -10%

toPercent(0.001)
//=> 0.1%
```

## API

#### `toPercent(decimal)` -> `string`

##### decimal

*Required*  
Type: `number`

Any valid number between `-Infinity` and `Infinity`, exclusive.


## License

MIT © [Ben Drucker](http://bendrucker.me)

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