Fix to MEDIAN() function
This commit is contained in:
parent
26cf4c0709
commit
bb7b48d94c
|
@ -2329,7 +2329,7 @@ class 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