
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
float-number-calc
Advanced tools
Solve the accuracy problem of floating point calculation.
npm install float-number-calc --save
or
npm i float-number-calc -S
or
yarn add float-number-calc
import calc from 'float-number-calc'
calc.add('0.01', '9.99') // '10.00'
calc.sub('10.00', '9.99') // '0.01'
calc.mul('1.11', '9') // '9.99'
calc.div('9.99', '1.11') // '9'
| 方法名 | 参数 | 说明 |
|---|---|---|
| add | add(x, y) | 简单加法 |
| sub | sub(x, y) | 简单减法 |
| mul | mul(x, y) | 简单乘法 |
| div | div(x, y) | 简单除法 |
✅ ❌ ⌛️
Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.
Detailed changes for each release are documented in the release notes.
Copyright (c) 2021-present, FloretPig
FAQs
Solve the problem of floating point calculation accuracy
The npm package float-number-calc receives a total of 4 weekly downloads. As such, float-number-calc popularity was classified as not popular.
We found that float-number-calc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.