rescale

10.0.0 • Public • Published

rescale

Build Status Coverage Status Code Climate

Rescale data

Install

npm i rescale

Usage

var Decimal = require('linear-arbitrary-precision')(require('floating-adapter'));
var rescale = require('rescale')(Decimal).rescale;
 
rescale([-3, 5], [10, 20], -1); // => Decimal 12.5
rescale([0, 100], [32, 212], 40); // => Decimal 104

See spec.

Related projects

Package Sidebar

Install

npm i rescale

Weekly Downloads

11

Version

10.0.0

License

MIT

Last publish

Collaborators

  • javiercejudo