实现java保留2位小数 DecimalFormat df = new DecimalFormat("0.00"); double d = 123.9078; double db = df.format(d); 则db=123.90;