# @writetome51/get-right-of-decimal

> Function takes a float and returns the digits on the right of the decimal

Latest version **2.0.2** (published 2020-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @writetome51/get-right-of-decimal
pnpm add @writetome51/get-right-of-decimal
yarn add @writetome51/get-right-of-decimal
bun add @writetome51/get-right-of-decimal
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2020-09-03 |
| First published | 2018-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Steve Thompson |
| Maintainers | writetome51 |
| Keywords | numbers, digits, decimal, get, fraction, float |

## Links

- npm: https://www.npmjs.com/package/@writetome51/get-right-of-decimal
- Homepage: https://github.com/writetome51/get-right-of-decimal#readme
- Issues: https://github.com/writetome51/get-right-of-decimal/issues
- npm.io page: https://npm.io/package/@writetome51/get-right-of-decimal

## Dependencies (2)

- [error-if-not-float](https://npm.io/package/error-if-not-float.md) >=2.0.0
- [@writetome51/to-str](https://npm.io/package/@writetome51/to-str.md) >=0.0.1

## 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.2 (latest) — 2020-09-03
- 2.0.0 — 2020-08-02
- 1.0.5 — 2019-04-11
- 1.0.4 — 2019-02-23
- 1.0.3 — 2018-12-08
- 1.0.2 — 2018-10-20
- 1.0.1 — 2018-10-07
- 1.0.0 — 2018-09-27

## README

# getRightOfDecimal(float): string

Receives `float` and returns the digits on the right of the decimal.  
The digits are returned as a string in order to preserve any zeros at the beginning.

## Examples
```js
getRightOfDecimal(-0.0001) --> '0001'

getRightOfDecimal(2.11) --> '11'
```

## Installation
`npm i  @writetome51/get-right-of-decimal`


## Loading
```js
import {getRightOfDecimal} from '@writetome51/get-right-of-decimal';
```

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