Skip to content

将数字转为金额千分位和大写金额形式。使用 Github Actions 自动构建发布到 npm

Notifications You must be signed in to change notification settings

npljy/changeNumToMoney

Repository files navigation

将数字转为千分位金额,数字转为大写金额

npm地址

https://www.npmjs.com/package/changenumtomoney

安装

npm install changenumtomoney --save

引用

import { changeNumToMoney, changeNumMoneyToChinese } from 'changenumtomoney'
const { changeNumToMoney, changeNumMoneyToChinese } = require('changenumtomoney')

使用

console.log(changeNumToMoney(123456789)) // 123,456,789
console.log(changeNumMoneyToChinese(123456789)) // 壹亿贰仟叁佰肆拾伍万陆仟柒佰捌拾玖元整

About

将数字转为金额千分位和大写金额形式。使用 Github Actions 自动构建发布到 npm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published