Merge pull request #349 from luxbet/poisson_fix

Allow value of 0 to be passed into POISSON formula
This commit is contained in:
Mark Baker 2014-06-08 17:57:42 +01:00
commit afb0101a32
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))) {