0.1.8 • Published 7 years ago

approximately-equal v0.1.8

Weekly downloads
209
License
MIT
Repository
github
Last release
7 years ago

approximately-equal Build Status

Check if two numbers are approximately equal

Install

npm install --save approximately-equal

Usage

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

0.1.8

7 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago