EXP
Returns the exponential value of the given float expression.Syntax
EXP ( float_expression ) Arguments
float_expressionIs an expression of type float.Return Types
floatExamples
This example declares a variable and returns the exponential value of the given variable (378.615345498) with a text description.DECLARE @var float
SET @var = 378.615345498
SELECT 'The EXP of the variable is: ' + CONVERT(varchar,EXP(@var))
GOHere is the result set:The EXP of the variable is: 2.69498e+164                   (1 row(s) affected)----
Using the POWER and EXP Exponential Functions
The POWER function returns the value of the given numeric expression to the specified power. POWER(2,3) returns 2 to the third power, or the value 8. Negative powers can be specified, so POWER(2.000, -3) returns 0.125. Notice that the result of POWER(2, -3) is 0. This is because the result is the same data type as the given numeric expression. Therefore, if the result has three decimal places, the number to raise to a given power must have three decimals, too.The EXP function returns the exponential value in scientific notation of the given float expression. So, with a value of 198.1938327, the EXP function returns a value of 1.18710159597953e+086.SELECT EXP(198.1938327)