---
title: ln function
description: Learn the syntax of the ln function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/ln
---

# `ln` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns the natural logarithm (base `e`) of `expr`.

## Syntax

```
ln(expr)
```

## Arguments

* `expr`: An expression that evaluates to a numeric.

## Returns

A `DOUBLE`.

if the argument is out of bounds, the result is `NULL`.

## Examples

```sql
> SELECT ln(1);
 0.0
```

## Related functions

* [`exp` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/exp.md)
* [`expm1` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/expm1.md)
* [`e` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/e.md)
* [`log` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/log.md)
* [`log10` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/log10.md)
* [`log1p` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/log1p.md)
