plus-arbitrary-precision
v1.1.0
Published
Addition abstraction for core-arbitrary-precision
Downloads
92
Maintainers
Readme
plus-arbitrary-precision
Addition abstraction for core-arbitrary-precision
Install
npm i plus-arbitrary-precision
Adapters
- See adapters
Usage
var adapter = require('floating-adapter');
var CoreDecimal = require('linear-arbitrary-precision')(adapter);
var Decimal = require('plus-arbitrary-precision')(CoreDecimal);
new Decimal('2').plus(new Decimal('3')).valueOf(); // => 5
See spec.