LN

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

Example

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