1.0.1 • Published 9 years ago
abs-arbitrary-precision v1.0.1
abs-arbitrary-precision
abs abstraction to extend core-arbitrary-precision
Install
npm i abs-arbitrary-precision
Adapters
Usage
var adapter = require('floating-adapter');
var Decimal = require('abs-arbitrary-precision')(require('linear-arbitrary-precision')(adapter));
new Decimal('-12').abs().valueOf(); // => 12
See spec.