Skip to main content
Returns natural (base e) logarithm of a numerical expression. The value for which ln is computed needs to be larger than 0, otherwise an error is returned. You can use the function LOG if you want to provide a different base.

Syntax

Parameters

Return Type

DOUBLE PRECISION

Examples

The following example computes the natural logarithm of 1.0:

Rows: 1Execution time: 5.63ms

The following example returns the natural logarithm close to e:

Rows: 1Execution time: 5.00ms

The natural logarithm can only be computed for values that are larger than 0. All the following functions return an error:
| | | |

Rows: 0Execution time: 0.65ms