User Guide Cancel

Exp

 

Description

Calculates the exponent whose base is e that represents  number . The constant e equals 2.71828182845904, the base of the natural logarithm. This function is the inverse of Log, the natural logarithm of  number .

Returns

The constant e, raised to the power of  number .

Category

Mathematical functions

Function syntax

Exp(number)

See also

LogLog10

Parameters

Parameter

Description

number

Exponent to apply to the base e

Usage

To calculate powers of other bases, use the exponentiation operator (^).

Example

<cfscript>
number = 2;
writeOutput(exp(number)) ; //Returns 7.38905609893
</cfscript>
<cfscript> number = 2; writeOutput(exp(number)) ; //Returns 7.38905609893 </cfscript>
<cfscript>
  number = 2;
  writeOutput(exp(number)) ; //Returns 7.38905609893
</cfscript>

Get help faster and easier

New user?