diff --git a/poi/src/main/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java b/poi/src/main/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java index 1482a39197..bf92661089 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java @@ -112,6 +112,7 @@ public final class AnalysisToolPak implements UDFFinder { r(m, "ERF", null); r(m, "ERFC", null); r(m, "FACTDOUBLE", FactDouble.instance); + r(m, "FLOOR.MATH", FloorMath.instance); r(m, "FVSCHEDULE", null); r(m, "GCD", Gcd.instance); r(m, "GESTEP", null); diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/CeilingMath.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/CeilingMath.java index 8ca82f7c2e..6c84abfea0 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/CeilingMath.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/CeilingMath.java @@ -24,9 +24,10 @@ import org.apache.poi.ss.formula.eval.NumberEval; import org.apache.poi.ss.formula.eval.OperandResolver; import org.apache.poi.ss.formula.eval.ValueEval; -import java.math.BigDecimal; import java.math.RoundingMode; +import static org.apache.poi.ss.formula.functions.MathX.scaledRoundUsingBigDecimal; + /** * Implementation for Excel CEILING.MATH() function. *