Skip to content

Exp

See Also: Math Functions, Log, Sqrt

Purpose

Exp returns the natural antilogarithm of a value.

Return Type

Real

Syntax

(Exp( {expression} ))

What It Does

Exp raises the value of e (2.71828), the natural logarithm base, to the power of {expression}.

Real rPower
Move (Exp(10)) to rPower

Notes

  • To calculate the natural logarithm of a number, use the Log function.
  • To calculate the common (base 10) antilogarithm of a value, use exp on the value multiplied by the common logarithm of 10 (2.30258509).

Example

In this example, the common antilogarithm (1.0e45) of 45 is output to variable rAntilogCom.

Procedure Test
    Real rAntilogCom
    Move (Exp(45 * (Log(10)))) to rAntilogCom
End_Procedure

Exp converts the {expression} parameter to a real value and outputs a real value.