]> source.dussan.org Git - poi.git/commitdiff
incorrect check
authorPJ Fanning <fanningpj@apache.org>
Tue, 25 Jan 2022 23:18:07 +0000 (23:18 +0000)
committerPJ Fanning <fanningpj@apache.org>
Tue, 25 Jan 2022 23:18:07 +0000 (23:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897478 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/ss/formula/functions/NormDist.java

index 32fd5bc300d097148a9af4c5ec8cce12703e7c18..3b81e5ec8607389efbc3a5550389f72b12b3f6a1 100644 (file)
@@ -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) {