EXP( ) Function

Returns the value of ex where x is a specified numeric expression.

EXP(nExpression)

Return Value

Numeric

Parameters

  • nExpression
    Specifies the exponent, x, in the exponential expression ex.

Remarks

The value of e, the base of natural logarithms, is approximately 2.71828. The number of decimal places returned by EXP( ) is specified with SET DECIMALS.

Example

? EXP(0)  && Displays 1.00
? EXP(1)  && Displays 2.72

See Also

Reference

LOG( ) Function

SET DECIMALS Command

Other Resources

Functions

Language Reference (Visual FoxPro)