Difference between revisions of "Extensions.Util.Max"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE: '''Max'''}}[[Category:Util]] | {{DISPLAYTITLE: '''Max'''}}[[Category:Util]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | Max |Gets the max of all operands. | [[Term]] | [[Extensions.Util|OTX Util extension]] | [[Extensions.Util#Terms|Util related terms]] | - | | + | {{ClassificationActivity | Max |Gets the max of all operands. | [[Term]] | [[Extensions.Util|OTX Util extension]] | [[Extensions.Util#Terms|Util related terms]] | - | [[Core.Validation.CoreChk023|Core_Chk023]] }} |
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | /// Local Declarations | |
+ | Integer IntegerVariable; | ||
+ | /// Flow | ||
+ | IntegerVariable = Util.Max(NumericTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 23: | Line 26: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
Float Float1; | Float Float1; | ||
Revision as of 09:52, 25 October 2018
Contents
Classification
Name | Max |
Short Description | Gets the max of all operands. |
Class | Term |
Extension | OTX Util extension |
Group | Util related terms |
Exceptions | - |
Checker Rules | Core_Chk023 |
Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
Integer IntegerVariable;
/// Flow
IntegerVariable = Util.Max(NumericTerm);
Description
The OTX Max term is a NumericTerm which returns the Max 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 max of all its operands. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Numeral | Numeric | Term | - | [2..*] | The numeric operands of the Max Term. |
OTL Examples
/// Local Declarations
Float Float1;
/// Flow
Float1 = Util.Max({0.99, 0.97, 0.93, 0.91, 0.9});
See also
Compare
CopyByteField
GetRandomNumber
IsInitialized
ListIndexOf
ListIndexOfAny
ListReverse
ListSort
Min
StringFormat