🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

mod-arbitrary-precision

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mod-arbitrary-precision

mod abstraction to extend core-arbitrary-precision

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
59
136%
Maintainers
1
Weekly downloads
 
Created
Source

mod-arbitrary-precision

Build Status Coverage Status Code Climate

mod abstraction to extend core-arbitrary-precision

Install

npm i mod-arbitrary-precision

Adapters

  • [adapter] [lib] floating

Usage

var adapter = require('floating-adapter');

var Decimal = require('mod-arbitrary-precision')(require('linear-arbitrary-precision')(adapter));

new Decimal('12').mod(new Decimal('5')).valueOf(); // => 2

See spec.

Keywords

precision

FAQs

Package last updated on 11 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts