android 中 四舍五入的method */

/* 四舍五入的method */
private String format(double num) {
NumberFormat formatter = new DecimalFormat("0.00");
String s = formatter.format(num);
return s;
}

 

posted @ 2013-12-21 15:50  爱编程hao123  阅读(533)  评论(0编辑  收藏  举报