Difference between revisions of "Extensions.Util.Min"
Jump to navigation
Jump to search
(Created page with "{{DISPLAYTITLE: '''Min'''}}Category:Util == Classification == {{ClassificationActivity | Min | UPDATING...<!--Create an event source for change event--> | Term | Ex...") |
|||
Line 1: | Line 1: | ||
− | {{DISPLAYTITLE: ''' | + | {{DISPLAYTITLE: '''Max'''}}[[Category:Util]] |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | | + | {{ClassificationActivity | Max |Gets the max of all its 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.Max(NumericTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== Description == | == Description == | ||
− | + | The OTX '''Max''' term is a NumericTerm which returns the max of all its operands. | |
− | The OTX ''' | ||
− | {{Note|The | + | {{Note|IMPORTANT — The actual return data type of the '''Max''' 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.}} |
− | {{TermReturnValue| [[ | + | {{TermReturnValue| [[Numeric]] | The max of all its operands.}} |
== Properties == | == Properties == | ||
− | |||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{ | + | {{TableRowPropertie2| Numeral | [[Numeric]] | [[Term]] | - | [2..*] | The numeric operands of the Max Term.}} |
|} | |} | ||
− | |||
== OTL Examples == | == OTL Examples == | ||
− | |||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | Float Float1; | |
− | |||
− | |||
− | + | /// Flow | |
− | + | ||
− | + | Float1 = Util.Max({0.99, 0.97, 0.93, 0.91, 0.9}); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== See also == | == See also == | ||
[[Extensions.Util.Compare|Compare]] <br/> | [[Extensions.Util.Compare|Compare]] <br/> | ||
[[Extensions.Util.CopyByteField|CopyByteField]] <br/> | [[Extensions.Util.CopyByteField|CopyByteField]] <br/> | ||
+ | [[Extensions.Util.GetRandomNumber|GetRandomNumber]] <br/> | ||
[[Extensions.Util.IsInitialized|IsInitialized]] <br/> | [[Extensions.Util.IsInitialized|IsInitialized]] <br/> | ||
[[Extensions.Util.ListIndexOf|ListIndexOf]] <br/> | [[Extensions.Util.ListIndexOf|ListIndexOf]] <br/> |
Revision as of 13:46, 4 October 2018
Contents
Classification
Name | Max |
Short Description | Gets the max of all its operands. |
Class | Term |
Extension | OTX Util extension |
Group | Util related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
NumericTerm = 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
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
Max
StringFormat