Classification
OTL Syntax
QuantityTerm = QuantityTerm1 - QuantityTerm2;
Description
This is a term which as a result of the subtraction of two numeric values (is NumericQuantity) returns with respect to their units.
Return Value
The Term returns the value, see table below.
|
|
In OTX, Terms are categorized according to its return data type!
|
Data Type |
Description
|
Quantity |
Result of the subtraction of two numeric variables (NumericQuantity)
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
QuantityTerm1 |
Quantity |
Term |
- |
[1] |
Left operand is of type NumericQuantity
|
QuantityTerm2 |
Quantity |
Term |
- |
[1] |
Right operand is of type NumericQuantity
|
OTL Examples
Quantities.Quantity result;
result = Quantity1 = 1 [@Unit, "ODX_RS_UNIT_LIB.odx", "km"] - 500 [@Unit, "ODX_RS_UNIT_LIB.odx", "m"];
See also
Addition
Multiplication
Division