LN(X) returns the natural logarithm of X; that is, the base-e logarithm of X : LN « Math Numeric Functions « MySQL Tutorial






mysql>
mysql> SELECT LN(2);
+------------------+
| LN(2)            |
+------------------+
| 0.69314718055995 |
+------------------+
1 row in set (0.00 sec)

mysql>
mysql> SELECT LN(-2);
+--------+
| LN(-2) |
+--------+
|   NULL |
+--------+
1 row in set (0.00 sec)

mysql>








21.20.LN
21.20.1.LN(X) returns the natural logarithm of X; that is, the base-e logarithm of X
21.20.2.Using LN function with data in a table