SourcePoint AMD Help

Table of Contents

exp

Return the exponential function of an expression.

Syntax

[result =] exp(expr)

Where:

result

specifies a debug object of type real8 to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

expr

specifies a number or an expression of type real8.

Discussion

The exp command returns the exponential function of an expression; that is, the number e raised to the expr power, where e is the base of the natural logarithm. The exp function returns infinite when the correct return value would overflow.

Note: Values returned by this command (a math function) are in real8 or 64-bit floating point precision. These values are displayed in the Command window rounded to 6 decimal digits. However, assignments and comparisons are performed on the full 64-bit value.

Example

Command input:

exp(1)

Result:

2.71828

Related Topics: