Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

EXP

Example

Calculate and return the value of ee raised to the power of 1.

SELECT EXP(1);

Definition and Usage

The EXP() function calculates the value of ee raised to the power of a given number, where ee (approximately 2.718281…) is the base of natural logarithms.

Note: Also refer to the LOG() function for logarithmic operations.

Syntax

EXP(number)

Parameter Values

Parameter

Description

number

Required: The exponent value.

Technical Details

Works in:

Available in SQL Server from 2008 onward, as well as in Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse.

More Examples

Example

Calculate and return the value of ee raised to the power of 2.

SELECT EXP(2);