minus-arbitrary-precision
v1.2.0
Published
Subtraction abstraction for core-arbitrary-precision
Downloads
12
Maintainers
Readme
minus-arbitrary-precision
Subtraction abstraction for core-arbitrary-precision
Install
npm i minus-arbitrary-precision
Adapters
- See adapters
Usage
var adapter = require('floating-adapter');
var CoreDecimal = require('linear-arbitrary-precision')(adapter);
var Decimal = require('minus-arbitrary-precision')(CoreDecimal);
new Decimal('3').minus(new Decimal('2')).valueOf(); // => 1
See spec.