From 83e024da994997dbb16a7ddab03ea961d8f9a572 Mon Sep 17 00:00:00 2001 From: Bobby Sciacchitano Date: Tue, 8 Apr 2014 11:43:53 +1000 Subject: [PATCH] Allow value of 0 to be passed into POISSON formula --- Classes/PHPExcel/Calculation/Statistical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Calculation/Statistical.php b/Classes/PHPExcel/Calculation/Statistical.php index 2037f334..67e1951c 100644 --- a/Classes/PHPExcel/Calculation/Statistical.php +++ b/Classes/PHPExcel/Calculation/Statistical.php @@ -2737,7 +2737,7 @@ class PHPExcel_Calculation_Statistical { $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); if ((is_numeric($value)) && (is_numeric($mean))) { - if (($value <= 0) || ($mean <= 0)) { + if (($value < 0) || ($mean <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } if ((is_numeric($cumulative)) || (is_bool($cumulative))) {