LOG2()

LOG2(V)

RETURNS THE LOGARITHM BASE 2 OF V

  • Type: Function
  • Parameter: 1
  • Group: Mathematics

ACTION

The function LOG2(V) returns the logarithm base 2 of V.

V can be a real or integer number and must be strictly positive.

SYNTAX: Result=LOG2(V)

  • V = real or integer value.

USE

  • The function LOG2() is used to calculate a log base 2.

ERROR

  • If V is less than or equal to 0.
  • If V is not a correct expression.

EXAMPLE

print log2(3)

print "Result = 1.58496250072116"

SEE ALSO

EXP()

LOG()

LOG10()