Difference between revisions of "Extensions.Util.Min"
Jump to navigation
Jump to search
(Edited by Ngoc Tran.) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE: '''Min'''}}[[Category:Util]] | {{DISPLAYTITLE: '''Min'''}}[[Category:Util]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | Min|Gets the min of all operands. | [[Term]] | [[Extensions.Util|OTX Util extension]] | [[Extensions.Util#Terms|Util related terms]] | - | | + | {{ClassificationActivity | Min|Gets the min of all operands. | [[Term]] | [[Extensions.Util|OTX Util extension]] | [[Extensions.Util#Terms|Util related terms]] | - | - }} |
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | NumericTerm Util.Min({NumericTerm[ ] numeral}); | |
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 32: | Line 29: | ||
/// Flow | /// Flow | ||
+ | // Result: Float1 = 0.9 | ||
Float1 = Util.Min({0.99, 0.97, 0.93, 0.91, 0.9}); | Float1 = Util.Min({0.99, 0.97, 0.93, 0.91, 0.9}); | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 04:57, 17 February 2020
Contents
Classification
Name | Min |
Short Description | Gets the min of all operands. |
Class | Term |
Extension | OTX Util extension |
Group | Util related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
NumericTerm Util.Min({NumericTerm[ ] numeral});
Description
The OTX Min term is a NumericTerm which returns the Min of all its operands.
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