codecamp

OceanBase EXP

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

语法

EXP (numeric_expression)

参数

参数

说明

numeric_expression

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

返回类型

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

示例

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

执行以下语句:

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

查询结果如下:

+-------------------------------------------+
| e to the 4th power                        |
+-------------------------------------------+
| 54.59815003314423907811026120286087840279 |
+-------------------------------------------+


OceanBase CEIL
OceanBase FLOOR
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定