From: PJ Fanning Date: Mon, 23 May 2022 14:10:11 +0000 (+0000) Subject: partial implementation FLOOR.MATH function (needs more testing and bad param support) X-Git-Tag: REL_5_2_3~310 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c1a8892cd09778e1ae38deb6d8f4b2d43845ec89;p=poi.git partial implementation FLOOR.MATH function (needs more testing and bad param support) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901175 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestFloorMath.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestFloorMath.java index 8973fe7146..3b038625d9 100644 --- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestFloorMath.java +++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestFloorMath.java @@ -51,6 +51,7 @@ final class TestFloorMath { assertDouble(fe, cell, "FLOOR.MATH(-2.5,-2)", -4.0, 0.00000000000001); assertDouble(fe, cell, "FLOOR.MATH(-2.5,-2,-1)", -2.0, 0.00000000000001); assertDouble(fe, cell, "FLOOR.MATH(2.5,-2)", 2.0, 0.00000000000001); + assertDouble(fe, cell, "FLOOR.MATH(0.234,0.01)", 0.23, 0.00000000000001); } }