0.1.0 • Published 9 months ago
tothousand v0.1.0
tothousand
Description
将项目中的金额处理成千分位
Software Architecture
javascript
Installation
npm install tothousand --save
Instructions
- import tothousand from 'tothousand'
- Receive parameters: num:要转化为千分位的金额 isnone:如果是空数字,输出内容,默认:'-' any:保留几位小数,支持保留 0、1、2 位小数,默认:2 unit 单位:万元、元,默认没有单位
- usage method: let targetMoney = tothousand(num, isnone, any, unit)
- example: let targetMoney = tothousand(200000, "--", "2", "元") // 200,000.00元
Contribution
liuming(https://ioolm.com)
Gitee Feature
- You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
- Gitee blog blog.gitee.com
- Explore open source project https://gitee.com/explore
- The most valuable open source project GVP
- The manual of Gitee https://gitee.com/help
- The most popular members https://gitee.com/gitee-stars/