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