Skip to main content

EXP

Returns e (Euler's number, approximately 2.71828) raised to the power of a numeric argument.

See also:
[SELECT] [LN] [POW]


Syntax​

SELECT EXP(numeric_expression) FROM <multipartIdentifier>;

Arguments​

numeric_expression
An expression of the exact numeric or approximate numeric data type category.

Return Value(s)​

Returns a floating point number. The result is NULL if numeric_expression is NULL.


Examples​

Exponential values​

The following query returns e, e to the power of 0, and e to the power of -1:

SELECT EXP(1) AS e, EXP(0) AS one, EXP(-1) AS inverse_e;
|-------------------|---------------------|-----|
| e | inverse_e | one |
|-------------------|---------------------|-----|
| 2.718281828459045 | 0.36787944117144233 | 1 |
|-------------------|---------------------|-----|

For more information, see https://www.sqlite.org/lang_mathfunc.html#exp