Skip to content

Commit 046b7fd

Browse files
committed
Fix math test EvalEx exception
1 parent ef02ec7 commit 046b7fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/cn/superiormc/ultimateshop/utils/MathFunctionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public EvaluationValue evaluate(Expression expression, Token functionToken,
5555
}
5656
}
5757

58-
static BigDecimal calc(String expr) {
58+
static BigDecimal calc(String expr) throws EvaluationException {
5959
return new Expression(expr, config).evaluate().getNumberValue()
6060
.setScale(10, RoundingMode.HALF_UP).stripTrailingZeros();
6161
}

0 commit comments

Comments
 (0)