DecimalFormat df = new DecimalFormat("0.0");//格式化小数 String nowBalanceValue = df.format((float)(10000/3600.0));