EXP
All functions > MATH > EXP
Returns e raised to the power of the given number (exponential function).
Syntax
EXP(exponent: T) → DOUBLE sql
Type Parameters:
T: Any numeric type (TINYINT, SMALLINT, INTEGER, BIGINT, FLOAT, DOUBLE, DECIMAL)
Arguments
| Parameter | Type | Required | Description |
|---|---|---|---|
exponent | T | Yes | The power to raise e to |
Returns
DOUBLE - Result of e^exponent
Notes
- e^x is the natural exponential function
EXP(0) = 1EXP(1) = e ≈ 2.718281828459045- Returns NULL if the input is NULL
- Inverse of the natural logarithm:
EXP(LN(x)) = x - Can result in very large numbers for large exponents