LOG

Returns the natural logarithm of the specified float expression.

Syntax

LOG ( float_expression [, base ] )

Arguments

float_expression

Is an expression of type float or of a type that can be implicitly converted to float.

base Optional integer argument that sets the base for the logarithm.

Return types

float

Examples

SELECT LOG(2.01e0, 2);

See Also