HH\Lib\Math\sum_float

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

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

Returns the float sum of the values of the given Traversable

Description

namespace HH\Lib\Math;

function sum_float<T as num>(
  Traversable<T> $traversable,
): float;

For an integer sum, see Math\sum().

Parameters