aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-08-01 13:50:14 +0000
committerPJ Fanning <fanningpj@apache.org>2022-08-01 13:50:14 +0000
commit280b5130e21cbde0a59773a2ae16e6450659743e (patch)
tree3f21a489573e4eb41727bd2dee80800463d026b4 /poi
parent9e88957356f84a621e214dfadd6e2ac19842774a (diff)
downloadpoi-280b5130e21cbde0a59773a2ae16e6450659743e.tar.gz
poi-280b5130e21cbde0a59773a2ae16e6450659743e.zip
update test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903169 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/test/java/org/apache/poi/ss/formula/atp/TestMRound.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/atp/TestMRound.java b/poi/src/test/java/org/apache/poi/ss/formula/atp/TestMRound.java
index da3e67e4be..20fd4b2099 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/atp/TestMRound.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/atp/TestMRound.java
@@ -100,10 +100,12 @@ class TestMRound {
Cell b3 = row2.createCell(1);
b3.setCellValue(1.35);
- double accuracy = 1E-9;
+ double accuracy = 1E-12;
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
+ assertEquals(1.2205, evaluator.evaluate(a2).getNumberValue(), accuracy);
+ assertEquals(1.175, evaluator.evaluate(b2).getNumberValue(), accuracy);
assertEquals(0.19775, evaluator.evaluate(c1).getNumberValue(), accuracy);
assertEquals(19.78, evaluator.evaluate(d1).getNumberValue(), accuracy);
d1.setCellFormula("MROUND(C1 * 100, 2)");