LN

Returns the natural logarithm of the argument.

Returns the natural logarithm of the argument. The return data type is the same as the argument.

Behavior type

Immutable

Syntax

LN ( expression )

Parameters

expression
Is an expression of type INTEGER or DOUBLE PRECISION

Examples

SELECT LN(2);
        ln
-------------------
 0.693147180559945
(1 row)