1 private double formatDouble(double number) { 2 DecimalFormat df = new DecimalFormat("#.00"); 3 return Double.valueOf(df.format(number)); 4 }
1 private double formatDouble(double number) { 2 DecimalFormat df = new DecimalFormat("#.00"); 3 return Double.valueOf(df.format(number)); 4 }
转载于:https://www.cnblogs.com/sunBinary/p/10064474.html