0.0.3 • Published 7 years ago

roughly v0.0.3

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

Roughly.js

Approximate/Fuzzy variable stuff

API Concept

npm install roughly

const Roughly = require("roughly")

const x = new Roughly.number({ greaterThan: 10, lessThan: 20 })

x.lessThan(20) // true
x.lessThan(21) // true
x.lt(21) // true

x.greaterThan(15) // undefined
x.gt(10) // true

const y = new Roughly.number({ greaterThan: 3 })

y.gt(2) // true
y.gt(3.1) // undefined
y.lt(3.1) // undefined
y.lt(2) // false