I think that your subroutine doesn't sort the array so it just returns the elements at the middle, not the median of the array.
In reply to Re^2: function that returns the middle of an array
by ambrus
in thread function that returns the middle of an array
by tcf03
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |