PostgreSQL LN
From w3cyberlearnings
Contents |
Postgresql LN
This function calculates the natural logarithm of X, the base-e logrithnm of X. When X is less than or equal to 0, this function returns NULL.
Syntax LN
X is a number
LN(X);
Example 1
postgres=# SELECT LN(3); ln ------------------ 1.09861228866811 (1 row)
Example 2
postgres=# SELECT LN(90); ln ------------------ 4.49980967033027 (1 row)