4, -6, 5, 4, 7, -5, 0, 2, 1
---
The median is the middle data element.
1st: Put the numbers in order.
2nd: Determine the middle number (in your case it is the 5th number).
----
-6,-5,0,1,2,4,4,5,7
---
Since there are 9 elements, the 5 is the middle::
median = 2
==============
Cheers,
Stan H.
---------------