We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const nzh = new Nzh({ ch: '零壹贰叁肆伍陆柒捌玖', // 数字字符 ch_u: '个拾佰仟万亿兆京', // 数位单位字符,万以下十进制,万以上万进制,个位不能省略 ch_f: '(负数)', // 负字符 ch_d: '点', // 小数点字符 m_u: '元角分', // 金额单位 m_t: '', // 金额前缀 m_z: '整' // 金额无小数后缀 })
// value如下 // 0.003 == 预期 零元整 目前 零元,望修复 // 0.5 == 预期 五角整 目前 五角,希望角位能支持带整
nzh.toMoney(value, { unOmitYuan: false, outSymbol: false })
The text was updated successfully, but these errors were encountered:
支持,希望能参考http://jdjc.mof.gov.cn/fgzd/202204/t20220419_3803834.htm 《会计基础工作规范》第五十二条的规定,角后面需要有个整,多谢
Sorry, something went wrong.
toMoney 增加 forceZheng 配置项 #34
forceZheng
e082fbe
v1.0.12 增加了 forceZheng 配置项
No branches or pull requests
// value如下
// 0.003 == 预期 零元整 目前 零元,望修复
// 0.5 == 预期 五角整 目前 五角,希望角位能支持带整
The text was updated successfully, but these errors were encountered: