Core.Terms.Multiply
Jump to navigation
Jump to search
Contents
Classification
Name | Multiply |
Short Description | Returns the product of the operands |
Class | Term |
Extension | OTX Core library |
Group | Operations |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
NumericValue = NumericTerm1 * NumericTerm2;
Description
Multiply is a NumericTerm which returns the product of all its operands. The following operators can be used: *
Return Value
The Term returns the value, see table below.
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Integer, Float | The return value of the product of all the operands. If one or more operands is of type float, the return value is float. Otherwise, the return value of the type is integer. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Numeral | Integer, Float | Term | - | [2..*] | The numeric term which represents the factor values. Terms will be evaluated in the order of appearance. |
OTL Examples
/// Local Declarations
Integer MyValue1 = 1;
Integer MyValue2 = 5;
Integer Result1;
Float Result2;
/// Flow
Result1 = MyValue1 * 8 * MyValue2 * 3;
Result1 = MyValue1 * 8.1 * MyValue2 * 3.2;
See also
Add
Subtract
Quantities Multiplication
Divide
Modulo
AbsoluteValue
Round
Negate