1.0.3 • Published 5 years ago

abs-compute v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Common methods for compulating numbers

installation

npm i abs-compute

introduction to these functions

const mathUtils = require('./mathUtils')

console.log(`
  ${mathUtils.accAdd(1,1.2)}, // 加法
  ${mathUtils.accSub(1,1.2)}, // 减法
  ${mathUtils.accSubPlus(1,1.2)}, // 大于两个数加法
  ${mathUtils.accDiv(1,1.2)}, // 除法
  ${mathUtils.accMul(1,1.2)}, // 两个数乘法
  ${mathUtils.accMulPlus(1, 1.2, 3)}, // 大于两个数的乘法
  ${mathUtils.toFixed(1, 4)}, // 设置小数点后保留的位数,默认为4位
`)
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago