Classification
OTL Syntax
NumericTerm Util.Min({NumericTerm[ ] numeral});
Description
The OTX Min term is a NumericTerm which returns the Min of all its operands.
|
|
|
Important: The actual return data type of the Min term depends on the data types of the operands: If one of the operands is Float, all Integer operands are automatically promoted to Float prior to the operation and the returned value is Float. Otherwise, the returned value is Integer.
|
Return Value
The Term returns the value, see table below.
|
|
In OTX, Terms are categorized according to its return data type!
|
Data Type |
Description
|
Numeric |
The min of all its operands.
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
Numeral |
Numeric |
Term |
- |
[2..*] |
The numeric operands of the Min Term.
|
OTL Examples
/// Local Declarations
Float Float1;
/// Flow
// Result: Float1 = 0.9
Float1 = Util.Min({0.99, 0.97, 0.93, 0.91, 0.9});
See also
Compare
CopyByteField
GetRandomNumber
IsInitialized
ListIndexOf
ListIndexOfAny
ListReverse
ListSort
Max
StringFormat