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

Merge pull request !221 from phper08/N/A
This commit is contained in:
若依 2021-05-06 20:39:26 +08:00
commit f67d682345
1 changed files with 114 additions and 114 deletions

View File

@ -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();
}
}