You are here: Core Reference > Coding > Logic > EXPT

EXPT

Function Name

EXPT (Exponential)

ST Operator

**

Description

The output is Input 1 to the power of Input 2. On Function Block Diagrams, the top input is Input 1 and the bottom input is Input 2.

Arguments

Input 1 {ANY_NUM}

Input 2 {ANY_NUM}

For more information on the data types for the inputs and outputs, see Data Type Hierarchy.

Returns

Output {Same data type as Input 1}

The Output = Input 1 to the power of Input 2.

Example:

Function Block Diagram - EXPT:

The output is the top input to the power of the bottom input. So, if the top input is 3 and the bottom input is 2, the output is 32 (3X3=9).

ST Program - EXPT:

The EXPT function outputs Input 1 to the power of Input 2.

  • Output := EXPT (Input 1, Input 2);

Where Output, Input 1 and Input 2 are defined as variables earlier in the ST program. In this case, let's assume Input 1 is 10 and Input 2 is 6. The Expt function returns 1000000 as 106=1000000.


ClearSCADA 2015 R2