JSPM

linear-scale-to-decimal

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q49547F
  • License MIT

Ensures a linear scale has decimals

Package Exports

  • linear-scale-to-decimal

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (linear-scale-to-decimal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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')]