Classification
OTL Syntax
FloatTerm Math.Power(NumericTerm numeral, NumericTerm exponent);
Description
The Power term will be used for calculating the power of a given number using a given exponent.
Return Value
The Term returns the value, see table below.
|
|
In OTX, Terms are categorized according to its return data type!
|
Data Type |
Description
|
Float |
Result of power calculations.
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
Numeral |
Numeric |
Term |
- |
[1] |
The numeric value of type integer or float, on which the power is calculated.
|
Exponent |
Numeric |
Term |
- |
[1] |
The numeric value of type integer or float, which will serve as an exponent in the calculation.
|
OTL Examples
/// Local Declarations
Float Float1;
/// Flow
Float1 = Math.Power(1, 2);
See also
Log
Ln
Sin
Cos
Tan