VeloDB Cloud
SQL Manual
Functions
math-functions
ln

ln

Description

Syntax:

DOUBLE ln(DOUBLE x)

This function returns the natural logarithm of x .

Example

mysql> select ln(1);
+---------+
| ln(1.0) |
+---------+
|       0 |
+---------+
mysql> select ln(e());
+---------+
| ln(e()) |
+---------+
|       1 |
+---------+
mysql> select ln(10);
+--------------------+
| ln(10.0)           |
+--------------------+
| 2.3025850929940459 |
+--------------------+

Keywords

LN