double count = 1.0;
DecimalFormat df = new DecimalFormat("#.000");
String countStr = df.format(count);
double count = 12345.1254;
DecimalFormat df = new DecimalFormat("#,###.00");
String moneyStr = df.format(money);
标签:orm ima div form ble 小数 nbsp log bsp
double count = 1.0;
DecimalFormat df = new DecimalFormat("#.000");
String countStr = df.format(count);
double count = 12345.1254;
DecimalFormat df = new DecimalFormat("#,###.00");
String moneyStr = df.format(money);
标签:orm ima div form ble 小数 nbsp log bsp
原文地址:https://www.cnblogs.com/xiaoQ0725/p/8341383.html