Averages/Median: Difference between revisions

Content added Content deleted
Line 2,055: Line 2,055:
a = @[4.1, 7.2, 1.7, 9.3, 4.4, 3.2]
a = @[4.1, 7.2, 1.7, 9.3, 4.4, 3.2]
echo formatFloat(median(a), precision = 0)</lang>
echo formatFloat(median(a), precision = 0)</lang>

Example Output:
4.4
5.8


=={{header|Oberon-2}}==
=={{header|Oberon-2}}==