mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 07:16:03 +03:00
Fix to MEDIAN() function
This commit is contained in:
parent
ba04463cc9
commit
6a8fca703c
@ -2337,7 +2337,7 @@ class PHPExcel_Calculation_Statistical
|
|||||||
if ($mValueCount == floor($mValueCount)) {
|
if ($mValueCount == floor($mValueCount)) {
|
||||||
$returnValue = ($mArgs[$mValueCount--] + $mArgs[$mValueCount]) / 2;
|
$returnValue = ($mArgs[$mValueCount--] + $mArgs[$mValueCount]) / 2;
|
||||||
} else {
|
} else {
|
||||||
$mValueCount == floor($mValueCount);
|
$mValueCount = floor($mValueCount);
|
||||||
$returnValue = $mArgs[$mValueCount];
|
$returnValue = $mArgs[$mValueCount];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user