minus-arbitrary-precision

1.2.0 • Public • Published

minus-arbitrary-precision

Build Status Coverage Status Code Climate

Subtraction abstraction for core-arbitrary-precision

Install

npm i minus-arbitrary-precision

Adapters

Usage

var adapter = require('floating-adapter');
var CoreDecimal = require('linear-arbitrary-precision')(adapter);
var Decimal = require('minus-arbitrary-precision')(CoreDecimal);
 
new Decimal('3').minus(new Decimal('2')).valueOf(); // => 1

See spec.

/minus-arbitrary-precision/

    Package Sidebar

    Install

    npm i minus-arbitrary-precision

    Weekly Downloads

    4

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • javiercejudo