2.0.2 • Published 3 years ago

node-compute v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

node-compute

Description

node项目中用于解决计算浮点的问题

Installation

yarn add node-compute

Instructions

import { isNum, add, subtract, multiply, divide, round, precision } from 'node-compute'

isNum 是否为数字

isNum(3) // true

add 加法函数

add(1, 2, 3) // 6

subtract 减法函数

subtract(9, 3, 2) // 4

multiply 乘法函数

multiply(3, 4, 5) // 60

divide 除法函数

divide(12, 2, 3) // 2

round 精度计算(四舍五入)

round(1.78236478, 4) // 1.7824

precision 精度计算(非四舍五入)

precision(1.78236478, 4) // 1.7823

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/
2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

10 years ago