scale-normalised

10.0.0 • Public • Published

scale

Build Status Coverage Status Code Climate

Scale normalised data

Install

npm i scale-normalised

Usage

var Decimal = require('linear-arbitrary-precision')(require('floating-adapter'));
var scale = require('scale-normalised')(Decimal).scale;

scale([2, 4], .5); // => Decimal 3
scale([-3, 5], -.25); // => Decimal -5

See spec.

Related projects

Package Sidebar

Install

npm i scale-normalised

Weekly Downloads

2

Version

10.0.0

License

MIT

Last publish

Collaborators

  • javiercejudo