in reply to Re: function that returns the middle of an arrayin thread function that returns the middle of an array
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.