exp()
Table of Contents
Overview
The exp() function takes a number as an argument, and returns the exponential value, of that number. That is, e (2.71828182845904) raised to the power of the given number.
Return Type
- Decimal
Syntax
<variable> = <number>.exp();
(OR)
<variable> = exp(<number> );
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned value. | NUMBER |
<number> | The number whose exponential value will be returned. | NUMBER or DECIMAL |
Examples
number = 1;
expValue = number.exp(); // returns 2.718281828459045
expValue = number.exp(); // returns 2.718281828459045