1.0.8 • Published 9 years ago
money2hanzi v1.0.8
金额转汉子大写金额
 如 1234567890 => 壹拾贰亿叁仟肆佰伍拾陆万柒仟捌佰玖拾元整状态
使用
   let money2Hanzi = require("./index");
   let hanzi = money2Hanzi.toHanzi(10011001);
   console.info(hanzi);
   //壹仟零壹万壹仟零壹元整测试
   mocha
     index.js
       ✓ 10011001 => 壹仟零壹万壹仟零壹元整 should be ok
       ✓ 11011011 => 壹仟壹佰零壹万壹仟零壹拾壹元整 should be ok
       ✓ 10011001.01 => 壹仟零壹万壹仟零壹元壹分整 should be ok