Allow value of 0 to be passed into POISSON formula

This commit is contained in:
Bobby Sciacchitano 2014-04-08 11:43:53 +10:00
parent e69a5e4d0f
commit 83e024da99
1 changed files with 1 additions and 1 deletions

View File

@ -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))) {