java四舍五入保留两位小数
常规解法思路是将数值乘以100,再调用Math.round做四舍五入操作,返回的时候再除以100public static double round(double value, int places) { if (places < 0) throw new IllegalArgumentException(); long factor = (long) Math.pow(...