HH\Lib\Math\cos

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

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

Returns the cosine of $arg

Description

namespace HH\Lib\Math;

function cos(
  num $arg,
): float;

To find the sine, see Math\sin(). To find the tangent, see Math\tan().

Parameters

  • num $arg