Math.Exp(Value)

.Exp() method returns Math.E^Value.

Applies To

Description

Math.Exp() method returns Math.E^Value where Value is the number supplied and Math.E is Euler's Constant.

Properties and Methods

None

Available

The .Exp(Value) method is available in:

  • 15.03.016
  • All newer builds

Type

Decimal

Syntax

Math.Exp(Value);

Parameters

Parameter

Required

Description

Value

Yes

Any data that can be evaluated as a number.

If the value cannot be evaluated as a number, then DEACOM will throw a scripting error.

Example

//--Calculates E to the power of Value

Event.Form.MessageBox('Math.Exp(0): ' + Math.Exp(0) +

'\nMath.Exp(1): ' + Math.Exp(1) +

'\nMath.Exp(-1): ' + Math.Exp(-1) +

'\nMath.Exp(2): ' + Math.Exp(2));

 

/* Expected System Prompt Display:

Math.Exp(0): 1

Math.Exp(1): 2.71828182845904

Math.Exp(-1): 0.367879441171442

Math.Exp(2): 7.38905609893065

*/