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