private String setPercentage(Double rate){
NumberFormat nt = NumberFormat.getPercentInstance();
nt.setMinimumFractionDigits(2);
String format = nt.format(rate);
return format;
}
java 将小数转换为百分比
最新推荐文章于 2024-07-07 03:33:30 发布