From: PJ Fanning Date: Tue, 25 Jan 2022 23:18:07 +0000 (+0000) Subject: incorrect check X-Git-Tag: REL_5_2_1~149 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11b2e9afe59fcfa4640d69149d4abde94b981a2a;p=poi.git incorrect check git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897478 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormDist.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormDist.java index 32fd5bc300..3b81e5ec86 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/functions/NormDist.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/NormDist.java @@ -48,8 +48,6 @@ public final class NormDist extends Fixed4ArgFunction implements FreeRefFunction Double xval = evaluateValue(arg1, srcRowIndex, srcColumnIndex); if (xval == null) { return ErrorEval.VALUE_INVALID; - } else if (xval < 0) { - return ErrorEval.NUM_ERROR; } Double mean = evaluateValue(arg2, srcRowIndex, srcColumnIndex); if (mean == null) {