Skip to main content

Categories: Math

EXP

Calculates Euler's number e raised to the power of the specified value. Returns NULL if the input is NULL.

Syntax​

EXP(numeric_expression NUMERIC) → DOUBLE​

  • numeric_expression: The exponent value to raise e to. This must be an DOUBLE, INTEGER, or FLOAT.

Examples

EXP example
SELECT EXP(1)
-- 2.7182818284590455
EXP example
SELECT EXP(10.0)
-- 22026.465794806718
Raise e to the power of 0
SELECT EXP(0)
-- 1.0
Raise e to the natural logarithm of 42
SELECT EXP(LN(42))
-- 42.00000000000001
Return NULL for a NULL input
SELECT EXP(NULL)
-- null