EA have restored and released the full source code for several antique Command & Conquer games under the General Public ...
If there are two middle values the median is halfway between them. This might not be a whole number.