merge
This commit is contained in:
@@ -77,8 +77,7 @@ public class DecimalUtil {
|
||||
*/
|
||||
public static Double div(Double v1, Double v2, int scale) {
|
||||
if (scale < 0){
|
||||
LOGGER.error("小数位数不能为负数");
|
||||
throw new IllegalArgumentException("小数位数不能为负数");
|
||||
throw new RuntimeException("小数位数不能为负数");
|
||||
}
|
||||
BigDecimal b1 = new BigDecimal(v1.toString());
|
||||
BigDecimal b2 = new BigDecimal(v2.toString());
|
||||
|
||||
Reference in New Issue
Block a user