Skip to content

EXP

Calculates the Euler's number exp as DECIMAL value.

Syntax

sql
EXP(expr)

Argument

expr: A real number or an argument of another data type that can be converted to a numeric data type.

Example

sql
SELECT EXP(1), EXP(LN(10)), EXP(2.72), EXP('2.72');
+---------+-----------+-----------+-------------+
|  EXP(1) |EXP(LN(10))| EXP(2.72) | EXP('2.72') |
|---------+-----------+-----------|-------------|
|  ~2.718 |        10 |    15.18  |       15.18 |
+---------+-----------+-----------+-------------+