1.0.1 • Published 9 years ago

abs-arbitrary-precision v1.0.1

Weekly downloads
10
License
MIT
Repository
github
Last release
9 years ago

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.