0.1.0 • Published 9 months ago

tothousand v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

tothousand

Description

将项目中的金额处理成千分位

Software Architecture

javascript

Installation

npm install tothousand --save

Instructions

  1. import tothousand from 'tothousand'
  2. Receive parameters: num:要转化为千分位的金额 isnone:如果是空数字,输出内容,默认:'-' any:保留几位小数,支持保留 0、1、2 位小数,默认:2 unit 单位:万元、元,默认没有单位
  3. usage method: let targetMoney = tothousand(num, isnone, any, unit)
  4. example: let targetMoney = tothousand(200000, "--", "2", "元") // 200,000.00元

Contribution

liuming(https://ioolm.com)

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/
0.1.0

9 months ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago