Socket
Socket
Sign inDemoInstall

fuxk-calc

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuxk-calc

A small, fast JavaScript library for arbitrary-precision decimal arithmetic.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

fuxk-calc npm package NPM downloads Dependency Status

A small, fast JavaScript library for arbitrary-precision decimal arithmetic.

Install

npm install fuxk-calc

Dev

grunt

How to use

let FuxkCalc = require('fuxk-calc');

let fuxkCalc = new FuxkCalc();

// add
console.log(fuxkCalc.add(13.3333, 1.8888888)); // 15.2221888

// subtract
console.log(fuxkCalc.subtract(13.3333, 1.8888888)); // 11.4444112
console.log(fuxkCalc.subtract(0.2, 0.3)); // -0.1

// multiply
console.log(fuxkCalc.multiply(0.3, 0.13)); // 0.039

// divide
console.log(fuxkCalc.divide(0.3, 0.2)); // 1.5

Keywords

FAQs

Package last updated on 03 Apr 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc