Policies & Guidelines

LOG

Calculate logarithm of number in given base

Description

Given a number, calculates its logarithm in the given base.

Function signature

LOG(number: Number, base: Number) => Number

Parameter

Description

Number

Number to calculate the logarithm

Base

Base to calculate the logarithm

Examples

Formula

Return value

LOG(1, 2)

0

LOG(100, 10)

2

LOG(10, 100)

0.5