linear-scale-to-number

Ensures a linear scale has numbers

Usage no npm install needed!

<script type="module">
  import linearScaleToNumber from 'https://cdn.skypack.dev/linear-scale-to-number';
</script>

README

linear-scale-to-number

Build Status Coverage Status Code Climate

Ensures a linear scale has numbers

Install

npm i linear-scale-to-number

Usage

var Decimal = require('linear-arbitrary-precision')(require('floating-adapter'));
var scaleToDecimal = require('linear-scale-to-number');

scaleToDecimal([new Decimal('32'), new Decimal('33.8')]);
// => [32, 33.8]

For the opposite behaviour, check linear-scale-to-decimal.

Related projects