update ruoyi-common/src/main/java/com/ruoyi/common/utils/Arith.java.

master
phper08 4 years ago
parent 62081aebb9
commit 7d0f5e94ef
  1. 2
      ruoyi-common/src/main/java/com/ruoyi/common/utils/Arith.java

@ -108,7 +108,7 @@ public class Arith
"The scale must be a positive integer or zero");
}
BigDecimal b = new BigDecimal(Double.toString(v));
BigDecimal one = new BigDecimal("1");
BigDecimal one = BigDecimal.ONE;
return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue();
}
}

Loading…
Cancel
Save