PostgreSQL LN Function

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PostgreSQL LN() function

LN() function

The PostgreSQL ln() function is used to return the natural logarithm of a given number, as specified in the argument.

Syntax :


PostgreSQL Version : 9.3

Pictorial presentation of PostgreSQL LN() function


Example : PostgreSQL LN() function :

SELECT LN(3.0) AS "Natural Logarithm";

Output :

  Natural Logarithm
(1 row)