# from-exponential

> Lightweight module to convert number from exponential notaton to a human readable string

Latest version **1.1.1** (published 2021-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install from-exponential
pnpm add from-exponential
yarn add from-exponential
bun add from-exponential
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-05-28 |
| First published | 2018-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 40 |
| Author | shrpne |
| Maintainers | shrpne |
| Keywords | format, from, exponential, number, pretty, human, readable, string |

## Links

- npm: https://www.npmjs.com/package/from-exponential
- Repository: https://github.com/shrpne/from-exponential
- Homepage: https://github.com/shrpne/from-exponential#readme
- Issues: https://github.com/shrpne/from-exponential/issues
- npm.io page: https://npm.io/package/from-exponential

## 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.1.1 (latest) — 2021-05-28
- 1.1.0 — 2021-05-03
- 1.0.0 — 2018-07-30

## README

# from-exponential

[![NPM Package](https://img.shields.io/npm/v/from-exponential.svg?style=flat-square)](https://www.npmjs.org/package/from-exponential)
[![Minified Size](https://img.shields.io/bundlephobia/min/from-exponential.svg?style=flat-square)](https://bundlephobia.com/result?p=from-exponential)
[![Build Status](https://img.shields.io/travis/com/shrpne/from-exponential/master.svg?style=flat-square)](https://travis-ci.com/shrpne/from-exponential)
[![Coverage Status](https://img.shields.io/coveralls/github/shrpne/from-exponential/master.svg?style=flat-square)](https://coveralls.io/github/shrpne/from-exponential?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://github.com/shrpne/from-exponential/blob/master/LICENSE)

Lightweight module to convert number from exponential notation to a human readable string.

Works opposite to [Number.prototype.toExponential()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toExponential)


## Install

```
npm install from-exponential
```


## Usage

```js
import fromExponential from 'from-exponential';

fromExponential(1.123e-10); // => '0.0000000001123'
fromExponential('-12.123e-1'); // => '-1.2123'
fromExponential(Number.MAX_VALUE); // => '179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
```


## Related

It is complemented by the following packages:
- [pretty-num](https://github.com/shrpne/pretty-num) all-in-one solution for pretty numbers: format exponential, add thousands separator, reduce decimal precision
- [thousands](https://github.com/scurker/thousands) add thousands separators


## License

MIT License

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