The library tool calc is used to deal with the accuracy of numerical calculations. Currently, it only supports the subtraction of decimals. More methods will be added later.
calc 工具库是用来专门处理数字计算的精确性,目前只支持小数的减法,后期会加入更多的方法
安装 pro-calc
npm i pro-calc
使用calc进去数字的精确计算
import calc from './dist/calc.js'
calc().minis(0.01, 00.1, ....)
- 基于webpack配置
- 单元测试
- [] 后期功能扩展
- ...
BigInt is not currently supported
目前不支持bigInt
Copyright (c) 2021-present, zhoull