to-decimal-arbitrary-precision
v1.0.2
Published
Ensures a number is represented as a decimal
Downloads
61
Readme
to-decimal
Ensures a number is represented as a decimal
Install
npm i to-decimal-arbitrary-precision
Usage
var Decimal = require('linear-arbitrary-precision')(require('floating-adapter'));
var toDecimal = require('to-decimal-arbitrary-precision')(Decimal);
toDecimal(32); // => new Decimal('32')
Related projects
- linear-presets: linear presets for common units.
- linear-converter: flexible linear converter.