Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

decimal-math-js

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

decimal-math-js

Small Library for floating type math

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

jsFloatMath

JavaScript Library for mathemathic operations including decimal numbers

Has two methods,

1> addFloat(array) pass the numbers that you want to add in an array 2> multiplyFloat(array) pass the numbers that you want to multiply in an array

Create new object

var floatJs = require('decimal-math-js') var newObj = new floatJs(5); // sets the rounding off point to 5 decimal places var newOBJ = new floatJs(); // calculates the rounding point on the basis of numbers passed

//Calculation method of rounding point decimal places// for addition the number of decimal points that is the highest amongst the array eg: [1,2.2,3.33,4.333] ===> rounding off point will be 3 decimal places

for multiplication the sum of number of decimal points in an array eg: [1,1.1, 1.2, 1.3, 1.4] ===> rounding off point will be 3

FAQs

Package last updated on 28 Jun 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

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