目录

MySQL EXP() Function

❮ MySQL Functions

Example

Return e raised to the power of 1:

SELECT EXP(1);
Try it Yourself »

Definition and Usage

The EXP() function returns e raised to the power of the specified number.

The constant e (2.718281...), is the base of natural logarithms.

Tip: Also look at the LOG() and LN() functions.

Syntax

EXP( number)

Parameter Values

Parameter Description
number Required. The power number

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Return e raised to the power of 2:

SELECT EXP(2);
Try it Yourself »

❮ MySQL Functions