HH\Lib\Math\maxva

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

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

Returns the largest of all input numbers

Description

namespace HH\Lib\Math;

function maxva<T as num>(
  T $first,
  T ...$rest,
): T;

To find the smallest number, see Math\minva(). For Traversables, see Math\max().

Parameters

  • T $first
  • T ...$rest