HH\Lib\Math\log

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

Returns the logarithm base $base of $arg

namespace HH\Lib\Math;

function log(
  num $arg,
  ?num $base = NULL,
): float;

For the exponential function, see Math\exp().

Parameters

  • num $arg
  • ?num $base = NULL