diff --git a/Classes/PHPExcel/Calculation/Statistical.php b/Classes/PHPExcel/Calculation/Statistical.php index 500f950..1a33610 100644 --- a/Classes/PHPExcel/Calculation/Statistical.php +++ b/Classes/PHPExcel/Calculation/Statistical.php @@ -2337,7 +2337,7 @@ class PHPExcel_Calculation_Statistical if ($mValueCount == floor($mValueCount)) { $returnValue = ($mArgs[$mValueCount--] + $mArgs[$mValueCount]) / 2; } else { - $mValueCount == floor($mValueCount); + $mValueCount = floor($mValueCount); $returnValue = $mArgs[$mValueCount]; } }