dobule运算

DecimalFormat df = new DecimalFormat("0.00");

 

double rate = (warnMonNum/totalCustCount)*100;
rateList.add(df.format(rate));

posted @ 2017-10-21 17:27  余***龙  阅读(227)  评论(0编辑  收藏  举报