equals-arbitrary-precision
v1.1.0
Published
equals abstraction to extend linear-arbitrary-precision
Downloads
71
Maintainers
Readme
equals-arbitrary-precision
equals abstraction to extend linear-arbitrary-precision
Install
npm i equals-arbitrary-precision
Usage
var adapter = require('floating-adapter');
var Decimal = require('equals-arbitrary-precision')(require('linear-arbitrary-precision')(adapter));
new Decimal('2').equals(new Decimal('2')); // => true
new Decimal('2').equals(new Decimal('3')); // => false
See spec.