package org.sz.basic;
import java.text.DecimalFormat;
public class ConvertMoney {
private final static String[] STR_NUMBER = { "零", "壹", "贰", "叁", "肆", "伍",
"陆", "柒", "捌", "玖" };
private final static String[] STR_UNIT = { "", "拾", "佰", "仟", "万", "拾万",
"佰万", "仟万", "亿", "拾亿", "佰亿", "仟亿" };
private final static String[] STR_UNIT2 = {"厘", "分", "角"};
public static String convert(double money) {
DecimalFormat df = new DecimalFormat("#0.000");
String strMoney = df.format(money);
String point = "";
if (strMoney.indexOf(".") != -1) {
String integer = strMoney.substring(0, strMoney.indexOf
金额转换为中文大写格式
最新推荐文章于 2023-08-01 10:36:20 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)