javiercejudo / linear-scale-to-decimal

Ensures a linear scale has decimals

Home Page:https://www.npmjs.com/package/linear-scale-to-decimal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

linear-scale-to-decimal

Build Status Coverage Status Code Climate

Ensures a linear scale has decimals

Install

npm i linear-scale-to-decimal

Usage

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

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

Related projects

About

Ensures a linear scale has decimals

https://www.npmjs.com/package/linear-scale-to-decimal

License:MIT License


Languages

Language:JavaScript 100.0%