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
Ensures a linear scale has decimals
Install
npm i linear-scale-to-decimalUsage
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
- linear-presets: linear presets for common units.
- linear-converter: flexible linear converter.