提交 f67d6823 authored 作者: 若依's avatar 若依

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

Merge pull request !221 from phper08/N/A
...@@ -108,7 +108,7 @@ public class Arith ...@@ -108,7 +108,7 @@ public class Arith
"The scale must be a positive integer or zero"); "The scale must be a positive integer or zero");
} }
BigDecimal b = new BigDecimal(Double.toString(v)); 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(); return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue();
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论