# decimal-math-js

> Small Library for floating type math

Latest version **0.0.2** (published 2015-06-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install decimal-math-js
pnpm add decimal-math-js
yarn add decimal-math-js
bun add decimal-math-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-06-28 |
| First published | 2015-06-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Suman Lama |
| Maintainers | sum114 |

## Links

- npm: https://www.npmjs.com/package/decimal-math-js
- Repository: https://github.com/sumanla13a/jsFloatMath
- Issues: https://github.com/sumanla13a/jsFloatMath/issues
- npm.io page: https://npm.io/package/decimal-math-js

## Dependencies (1)

- [very-simple-statistics](https://npm.io/package/very-simple-statistics.md) *

## Recent versions

- 0.0.2 (latest) — 2015-06-28
- 0.0.1 — 2015-06-28

## README

# 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

---
_Source: https://npm.io/package/decimal-math-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
