HH\Lib\Math\median

This API is part of the Hack Standard Library, not HHVM itself.
Facebook Engineer?

This function is available as Math\median() in Facebook's www repository.

Returns the median of the given numbers

Description

namespace HH\Lib\Math;

function median(
  Container<num> $numbers,
): ?float;

To find the mean, see Math\mean().

Parameters