w3resource

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:

ln()

PostgreSQL Version: 9.3

Pictorial presentation of PostgreSQL LN() function

pictorial presentation of PostgreSQL LN() function

Example: PostgreSQL LN() function:

Code:

SELECT LN(3.0) AS "Natural Logarithm";

Sample Output:

  Natural Logarithm
--------------------
 1.0986122886681097
(1 row)

Previous: FLOOR function
Next: LOG function



Follow us on Facebook and Twitter for latest update.