Commit f67d6823 authored by 若依's avatar 若依

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

Merge pull request !221 from phper08/N/A
parents 62081aeb 7d0f5e94
......@@ -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();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment