1.1.1 • Published 9 years ago

epsilon-range v1.1.1

Weekly downloads
18
License
-
Repository
github
Last release
9 years ago

epsilon-range

Utility for determining if a number, integer or float, belongs to a range.

npm install epsilon-range

app.js contains tests for the library (just console.log's, I didn't want to deploy a testing framework)

Usage

var range = require("epsilon-range");

var epsilon = new range(3,5); //first parameter is the lower value, and the second one is the upper value

API

epsilon.apply(x)

Does a weak comparison to check if the value x is in the range (using >= and <=)

epsilon.applyStrict(x)

Does a strict comparison to check if the value x is in the range (using > and <)

License

MIT

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago