Skip to main content
Returns the value of the constant e raised to the power of the specified number.

Syntax

Parameters

Return Type

DOUBLE PRECISION

Remarks

  • EXP(NULL) returns NULL.
  • EXP('NaN') returns NaN.
  • EXP('Infinity') returns Infinity.
  • EXP('-Infinity') returns 0.
  • If the result would overflow or underflow the DOUBLE PRECISION range, an error is raised. To check whether a value is finite before calling EXP, use IS_FINITE.
  • NUMERIC arguments are not accepted; cast them explicitly to DOUBLE PRECISION first.

Example

The following example raises e to the power of 2:

Rows: 1Execution time: 2.19ms

The following example shows special value handling:

Rows: 1Execution time: 4ms