Fix to MEDIAN() function

This commit is contained in:
MarkBaker 2015-10-28 00:47:01 +00:00
parent ba04463cc9
commit 6a8fca703c

View File

@ -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];
}
}