mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2025-04-02 21:06:19 +03:00
Merge pull request #349 from luxbet/poisson_fix
Allow value of 0 to be passed into POISSON formula
This commit is contained in:
commit
afb0101a32
1 changed files with 1 additions and 1 deletions
|
@ -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))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue