©SQL :: Manager
HomeProgram InformationTechnical detailsFree downloadDonate for a cup of coffee
myway SQL Manager for MySQL and MariaDB, Download on Uptodown
SQL functionMySQLMariaDB

The EXP SQL Function in MySQL and MariaDB - Logarithm inverse

EXPSyntax:EXP(Number)
Return value:FLOAT
Function type:Numeric function
Function Description

The EXP() function returns the value of e, the base of natural logarithms (2.7182818), raised to the "Number" power.

The inverse of this function is LOG() without specifying the "base" or LN().

If the value of "number" is NULL, the EXP() function returns NULL.

SQL Examples for the EXP function

 1
 2
 3
 4
 5
 6

select exp(0.6931471805599453);
select exp(0.8754687373538999);
select exp(1);
select exp(null);

exp(0.6931471805599453)
double(23)
2
exp(0.8754687373538999)
double(23)
2.4
exp(1)
double(23)
2.718281828459045
exp(null)
double(23)
NULL
The examples were created with the MyWAY SQL manager: Download

How to use the EXP() function in MySQL and MariaDB databases

The EXP() function in MySQL and MariaDB is used to calculate the exponential value of a given number. It returns the Euler number (approximately 2.718281828459045) raised to the power of the specified number. The function is often used when exponential values ​​need to be calculated, such as growth rates, compound interest, or exponential decay. The function uses floating-point arithmetic, so the precision of the result depends on the underlying data type.
ELTENCODEENCRYPTEXPEXPORT_SETEXTRACTFIELD

Further MySQL und MariaDB SQL Numeric functions

BIT_COUNTBIT_COUNT(Integer)
More about BIT_COUNT Function

CEILCEIL(Number)
More about CEIL Function

CEILINGCEILING(Number)
More about CEILING Function

CRC32CRC32(String)
More about CRC32 Function

CRC32CCRC32C([Parameter], String)

FLOORFLOOR(Number)
More about FLOOR Function

SIGNSIGN(Number)
More about SIGN Function

ABSABS(Number)
More about ABS Function

ACOSACOS(Number)
More about ACOS Function

ASINASIN(Number)
More about ASIN Function

ATANATAN(Number [, Number2])
More about ATAN Function

ATAN2ATAN2(Number [, Number2])
More about ATAN2 Function

COSCOS(Number)
More about COS Function

COTCOT(Number)
More about COT Function

DEGREESDEGREES(Number)
More about DEGREES Function

LNLN(Number)
More about LN Function

LOGLOG([Base], Number)
More about LOG Function

LOG10LOG10(Number)
More about LOG10 Function

LOG2LOG2(Number)
More about LOG2 Function

MODMOD(Number, Divider)
More about MOD Function

POWPOW(Number, Exponent)
More about POW Function

POWERPOWER(Number, Exponent)
More about POWER Function

PIPI()
More about PI Function

RADIANSRADIANS(Number)
More about RADIANS Function

RANDRAND([Number])
More about RAND Function

ROUNDROUND(Number [, Decimals])
More about ROUND Function

SINSIN(Number)
More about SIN Function

SQRTSQRT(Number)
More about SQRT Function

TANTAN(Number)
More about TAN Function

TRUNCATETRUNCATE(Number, Decimals)
More about TRUNCATE Function

Numeric functionsString functionsRegular ExpressionsDate and Time functions
Comparison functionsEncryption & CompressionConversion functionsNULL functions
Aggregate functionsWindow functionsJSON functionsGeometric functions
Sequence functionsInformation functionsDynamic ColumnsMiscellaneous functions
More information about the EXP SQL function: mysql.com and mariadb.com and w3schools.com
Updated: 2023-09-24ImprintContactTerms & conditionsPrivacy & CookiesUpdatesSitemapFacebookLinkedinTwitterStatistics©2020-2024 Heino Cunze-Fischer