jsfloatcalc
v0.0.2
Published
javaScript 浮点数计算
Downloads
8
Readme
js浮点数运算
安装
npm install jsfloatcalc -S
使用
const jsCalc = require('jsfloatcalc')
// 加法
jsCalc.add(0.1, 0.2) // 0.3
// 减法
jsCalc.subtract(1.5, 1.2) // 0.3
// 乘法
jsCalc.ride(0.7, 180) // 126
// 除法
jsCalc.divide(0.3, 0.1) // 3