public static void main(String[] args){
System.out.println(Convert.numberToChinese(128.5,true));
System.out.println(Convert.numberToChinese(128.5,false));
System.out.println(Convert.numberToWord(128.5));
}
输出结果
壹佰贰拾捌点伍
一百二十八点五
ONE HUNDRED AND TWENTY EIGHT AND CENTS FIVE ONLY
10-14
3929
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-04
1353
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-08
397
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-06
1157
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-26