LN
Calculate natural logarithm. This function returns the logarithm of a number to the base e.
Syntax
LN(X)Description
Examples
SELECT LN(2);
+-------------------+
| LN(2) |
+-------------------+
| 0.693147180559945 |
+-------------------+
SELECT LN(-2);
+--------+
| LN(-2) |
+--------+
| NULL |
+--------+Last updated
Was this helpful?

