abs-arbitrary-precision

1.0.1 • Public • Published

abs-arbitrary-precision

Build Status Coverage Status Code Climate

abs abstraction to extend core-arbitrary-precision

Install

npm i abs-arbitrary-precision

Adapters

Usage

var adapter = require('floating-adapter');
 
var Decimal = require('abs-arbitrary-precision')(require('linear-arbitrary-precision')(adapter));
 
new Decimal('-12').abs().valueOf(); // => 12

See spec.

Package Sidebar

Install

npm i abs-arbitrary-precision

Weekly Downloads

10

Version

1.0.1

License

MIT

Last publish

Collaborators

  • javiercejudo