GitHubContribute in GitHub: Edit online

log2()

log2() returns the base-2 logarithm function.

Syntax

log2(x)

Arguments

  • x: A real number > 0.

Returns

  • The logarithm is the base-2 logarithm: the inverse of the exponential function (exp) with base 2.
  • null if the argument is negative or null or can't be converted to a real value.

See also

  • For natural (base-e) logarithms, see log().
  • For common (base-10) logarithms, see log10().