tech on the net

Oracle/PLSQL: EXP Function

Learn how to use the Oracle/PLSQL EXP function with syntax and examples.

Description

The Oracle/PLSQL EXP function returns e raised to the nth power, where e = 2.71828183.

Syntax

The syntax for the Oracle/PLSQL EXP function is:

exp( number )

Parameters or Arguments

number is the power to raise e to.

Applies To

The EXP function can be used in the following versions of Oracle/PLSQL:

  • Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i

Example

Let's look at some Oracle EXP function examples and explore how you would use the EXP function in Oracle/PLSQL.

For example:

EXP(3) would return 20.0855369231877
EXP(3.1) would return 22.1979512814416
EXP(-3) would return 0.0497870683678639