Jump to: navigation, search

PostgreSQL EXP

From w3cyberlearnings

Contents

Postgresql EXP

This function returns the value of e raised to the power of X, and it is based on the natural logarithms. It's reverse function is LOG() or LN(). It returns the exponent of e.

Syntax EXP

EXP(X);

Example 1


postgres=# SELECT EXP(2);
       exp        
------------------
 7.38905609893065
(1 row)

Example 2


postgres=# SELECT EXP(2.5);
        exp         
--------------------
 12.182493960703473
(1 row)

Related Links



Navigation
Web
SQL
MISC
References