EXP 函数返回 e 的 numeric_expression 次幂(e 为数学常量,e = 2.71828183… )。

语法

  1. EXP (numeric_expression)

参数

参数

说明

numeric_expression

精确数值或近似数值数据类型(NUMBERFLOATBINARY_FLOATBINARY_DOUBLE)的表达式。

返回类型

返回类型与参数 numeric_expression 的数据类型相同。

示例

此示例显示了查询 e 的 4 次幂结果。

执行以下语句:

  1. SELECT EXP(4) "e to the 4th power" FROM DUAL;

查询结果如下:

  1. +-------------------------------------------+
  2. | e to the 4th power |
  3. +-------------------------------------------+
  4. | 54.59815003314423907811026120286087840279 |
  5. +-------------------------------------------+