update ruoyi-common/src/main/java/com/ruoyi/common/utils/Arith.java.
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -108,7 +108,7 @@ public class Arith | @@ -108,7 +108,7 @@ public class Arith | ||
| 108 | "The scale must be a positive integer or zero"); | 108 | "The scale must be a positive integer or zero"); |
| 109 | } | 109 | } |
| 110 | BigDecimal b = new BigDecimal(Double.toString(v)); | 110 | BigDecimal b = new BigDecimal(Double.toString(v)); |
| 111 | - BigDecimal one = new BigDecimal("1"); | 111 | + BigDecimal one = BigDecimal.ONE; |
| 112 | return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue(); | 112 | return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue(); |
| 113 | } | 113 | } |
| 114 | } | 114 | } |
-
请 注册 或 登录 后发表评论