sqrt-arbitrary-precision
v1.1.0
Published
sqrt abstraction to extend linear-arbitrary-precision
Downloads
20
Maintainers
Readme
sqrt-arbitrary-precision
sqrt abstraction to extend linear-arbitrary-precision
Install
npm i sqrt-arbitrary-precision
Adapters
Usage
var adapter = require('floating-adapter');
var Decimal = require('sqrt-arbitrary-precision')(require('linear-arbitrary-precision')(adapter));
new Decimal('9').sqrt().valueOf(); // => 3
See spec.