
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
big_calculate
Advanced tools
js 字符串计算,解决 javascript 计算精度问题以及大数据计算
npm install big_calculate<script src="@big_calaulate/lib/umd/calculate.dev.js"></script>import _Calculate from "big_calculate";
_Calculate.count("+", 12.121212, 121212.1212, 0.34344); // 121224.585852
_Calculate.count("-", 12.121212, 121212.1212, 0.34344); // 121199.656548
_Calculate.count("*", 12.121212, 121212.1212, 0.34344); // 504595.036225904132736
_Calculate.count("/", 12.121212, 121212.1212, 0.34344); // 0.00029117167193687398061087817
// 四舍五入
_Calculate.toFixeds(1212121.232323232323, 2); // 1212121.23
_Calculate.toFixeds(1212121.23, 2, 5); // 1212121.23
_Calculate.toFixeds(1212121.23121535, 2, 5); // 1212121.23122
// 科学计数法转字符串
_Calculate.exchanges(2.91171671936874e-4); // 0.000291171671936874
FAQs
JS计算
The npm package big_calculate receives a total of 3 weekly downloads. As such, big_calculate popularity was classified as not popular.
We found that big_calculate 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.