# @writetome51/get-left-of-decimal

> Returns number without the decimal or anything to the right of it. Does not round

Latest version **3.0.0** (published 2020-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @writetome51/get-left-of-decimal
pnpm add @writetome51/get-left-of-decimal
yarn add @writetome51/get-left-of-decimal
bun add @writetome51/get-left-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 | 3.0.0 |
| Published | 2020-09-01 |
| First published | 2018-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steve Thompson |
| Maintainers | writetome51 |
| Keywords | numbers, remove, decimal, return, get, integer |

## Links

- npm: https://www.npmjs.com/package/@writetome51/get-left-of-decimal
- Repository: https://github.com/writetome51/get-left-of-decimal
- Homepage: https://github.com/writetome51/get-left-of-decimal#readme
- Issues: https://github.com/writetome51/get-left-of-decimal/issues
- npm.io page: https://npm.io/package/@writetome51/get-left-of-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

- 3.0.0 (latest) — 2020-09-01
- 2.0.0 — 2020-08-02
- 1.0.5 — 2019-04-11
- 1.0.4 — 2019-02-21
- 1.0.3 — 2018-12-08
- 1.0.2 — 2018-11-14
- 1.0.1 — 2018-10-12
- 1.0.0 — 2018-10-12

## README

# getLeftOfDecimal(number): number

Returns `number` without the decimal or anything to the right of it.  Does not round.

Examples:
```js
getLeftOfDecimal(11.000001);
// -->  11

getLeftOfDecimal(11.999999);
// -->  11

getLeftOfDecimal(-11.999999);
// -->  -11

getLeftOfDecimal(0.000001);
// -->  0

getLeftOfDecimal(-0.999999);
// -->  0

getLeftOfDecimal('1.999999999999999');
// -->  1

getLeftOfDecimal('-0.000000001');
// -->  0

let result = getLeftOfDecimal('1.99999');
console.log(typeof result);
// 'number'
```

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

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

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