摘要:
double finalMoney = 28.06 * (1 - 0.0028); DecimalFormat formater = new DecimalFormat(); formater.setMaximumFractionDigits(2); formater.setGroupingSize(0); formater.setRoundingMode(RoundingMode.FLOOR); System.out.println(formater.format(finalMoney)); 阅读全文