You may not have arranged the values in order from least to greatest before finding the middle value, or median.