exp function

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime

Returns e to the power of expr.

Syntax

exp(expr)

Arguments

  • expr: An expression that evaluates to a numeric.

Returns

A DOUBLE.

Examples

> SELECT exp(0);
 1.0
> SELECT exp(1);
 2.7182818284590455