EXP

All functions > MATH > EXP

Returns e raised to the power of the given number (exponential function).

Signatures

Returns: Result of e^exponent

EXP(exponent: T) → DOUBLE
sql
ParameterTypeRequiredDescription
exponentTYesThe power to raise e to

Notes

  • e^x is the natural exponential function
  • EXP(0) = 1
  • EXP(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

Examples

FeatureQL
SELECT
    f1 := EXP(0.0e0),  -- e^0 equals 1
    f2 := EXP(1.0e0),  -- e^1 equals e
    f3 := EXP(2.0e0),  -- e squared
    f4 := EXP(-1.0e0),  -- Negative exponent
    f5 := EXP(0.5e0)  -- Square root of e
;
Result
f1 VARCHARf2 VARCHARf3 VARCHARf4 VARCHARf5 VARCHAR
1.02.7182818284590457.389056098930650.367879441171442331.6487212707001282

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19