From 6a8fca703ca1b1de44d4acf1c1695ea1c0196085 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Wed, 28 Oct 2015 00:47:01 +0000 Subject: [PATCH] Fix to MEDIAN() function --- 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 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]; } }