From 769fc25e64c7868e407301fb1ae7f77c741c97a0 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 23 May 2022 13:53:56 +0000 Subject: [PATCH] partial implementation FLOOR.MATH function (needs more testing and bad param support) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901172 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/poi/ss/formula/functions/MathX.java | 2 ++ 1 file changed, 2 insertions(+) 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)