2.0.1 • Published 8 years ago

is-practically-equal v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

is-practically-equal

Determine whether two numbers are practically equal.

Parameters:

NameTypeDescription
aNumberA number.
bNumberAnother number.
toleranceNumberThe acceptable tolerance.

Returns:

Boolean Whether the numbers are practically equal or not.

Example:

isPracticallyEqual(0.15 + 0.15, 0.1 + 0.2, Number.EPSILON)
// → true