bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server EXP() Function

Concept visual

SQL Server EXP() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return e

raised to the power of 1:

SELECT EXP(1);

Definition and Usage

The EXP() function returns e raised to the power of a specified number. The constant e (2.718281...), is the base of natural logarithms.

Note:

See also the LOG() function.

Syntax

Exp(

number )

Parameter Values

Parameter

Description number

Required. The power number

Technical Details

Works in:

SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

More Examples

Example

Return e

raised to the power of 2:

SELECT EXP(2);

Previous

❮ SQL Server Functions

Next

Previous

SQL Server DEGREES() Function

Next

SQL Server FLOOR() Function