ln
function
Applies to: Databricks SQL
Databricks Runtime
Returns the natural logarithm (base e
) of expr
.
ln(expr)
expr
: An expression that evaluates to a numeric.
A DOUBLE.
if the argument is out of bounds, the result is NULL.
> SELECT ln(1);
0.0