MySQL EXP() function
EXP() function
MySQL EXP() returns the value of the base of natural logarithm number e, raised to the power of a number specified as argument.
Syntax:
EXP(N);
Argument:
Name | Description |
---|---|
N | A number. |
Syntax Diagram:

MySQL Version: 5.6
Pictorial presentation of MySQL EXP() function
Example of MySQL EXP() function
Code:
SELECT EXP(1);
Explanation:
The above MySQL statement will return the value of the natural logarithm base number e raised to the power of the given number.
Sample Output:
mysql> SELECT EXP(1); +------------------+ | EXP(1) | +------------------+ | 2.71828182845905 | +------------------+ 1 row in set (0.03 sec)
Example: EXP() function with negative value
Code:
SELECT EXP(-1);
Explanation:
The above MySQL statement will return the value of the natural logarithm base number e raised to the power of the given number.
Sample Output:
mysql> SELECT EXP(-1); +-------------------+ | EXP(-1) | +-------------------+ | 0.367879441171442 | +-------------------+ 1 row in set (0.00 sec)
All Mathematical Functions
- Weekly Trends
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join
- JavaScript functions Exercises
- Python Tutorial
- Python Array Exercises
- SQL Cross Join
- C# Sharp Array Exercises
We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook