# approximately-equal

> Check if two numbers are approximately equal

Latest version **0.1.8** (published 2017-04-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install approximately-equal
pnpm add approximately-equal
yarn add approximately-equal
bun add approximately-equal
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2017-04-18 |
| First published | 2015-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrey Polischuk |
| Maintainers | andrepolischuk |
| Keywords | number, approximately, equal |

## Links

- npm: https://www.npmjs.com/package/approximately-equal
- Repository: https://github.com/andrepolischuk/approximately-equal
- Issues: https://github.com/andrepolischuk/approximately-equal/issues
- npm.io page: https://npm.io/package/approximately-equal

## Dependencies (1)

- [number-epsilon](https://npm.io/package/number-epsilon.md) ^1.0.2

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

- 0.1.8 (latest) — 2017-04-18
- 0.1.7 — 2016-08-14
- 0.1.6 — 2016-01-16
- 0.1.5 — 2015-12-08
- 0.1.4 — 2015-09-09
- 0.1.3 — 2015-08-16
- 0.1.2 — 2015-08-03
- 0.1.1 — 2015-08-02
- 0.1.0 — 2015-08-02

## README

# approximately-equal [![Build Status][travis-image]][travis-url]

> Check if two numbers are approximately equal

## Install

```sh
npm install --save approximately-equal
```

## Usage

```js
import approximatelyEqual from 'approximately-equal';

approximatelyEqual(100.5, 101, 0.1); // false
approximatelyEqual(100.5, 100.6, 0.1); // true
```

## API

### approximatelyEqual(actual, expected[, error])

#### actual

Type: `number`

Actual value.

#### expected

Type: `number`

Expected value.

#### error

Type: `number`  
Default: `0`

Approximation error.

## License

MIT

[travis-url]: https://travis-ci.org/andrepolischuk/approximately-equal
[travis-image]: https://travis-ci.org/andrepolischuk/approximately-equal.svg?branch=master

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