diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/MathX.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/MathX.java index 3efa5bc335..2a42587987 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/MathX.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/MathX.java @@ -18,6 +18,7 @@ package org.apache.poi.ss.formula.functions; import org.apache.poi.ss.util.NumberToTextConverter; +import org.apache.poi.util.Internal; import java.math.BigDecimal; import java.math.RoundingMode; @@ -273,6 +274,7 @@ final class MathX { } } + @Internal public static double scaledRoundUsingBigDecimal(double xval, double multiplier, RoundingMode mode) { BigDecimal multiplierDecimal = BigDecimal.valueOf(multiplier); BigDecimal bd = BigDecimal.valueOf(xval).divide(multiplierDecimal)