Log

The Log() function calculates the natural logarithm (base e) of a given number, or calculates the logarithm of a number by specified base.

Read wiki for more info about logarithm.

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

Returns the logarithm of a givennumber, using base e or a specified base number. Returns Invalid expression if one of the parameter values is not a valid number.

Syntax

Log(number)

Log(5) => 1.6094379124

Log() => Invalid expression

Log(base, number)

Log(25, 5) => 2

Log(5, 25) => 0.5

Parameters

NameTypeRequiredDescription

number

numeric

a numeric value.

base

numeric

a numeric value.

Examples

Function callResult

Log(5)

1.6094

Log(25, 5)

2

Log(5, 25)

0.5

Last updated