fpop
v0.1.3
Published
Floating Point OPerators.
Downloads
2
Readme
fpop
Floating Point OPerators.
Installation
yarn add fpop
Usage
import * as fpop from 'fpop'
const a = 1
const b = 1.00000001
const c = 2
const d = 2.00000001
const e = 2.00000002
fpop.eq(a, b) // => true
fpop.eq(c, d, e) // => true
fpop.lt(a, b) // => false
fpop.gte(c, a) // => true
List of operators
Unary
isZero
isPositive
isNegative
Binary
eq2
equalneq
not equallt2
less thangt2
greater thanlte2
less than or equalgte2
greater than or equal
N-ary
eq
equallt
less thangt
greater thanlte
less than or equalgte
greater than or equalareZero
arePositive
areNegative
areSameSign