max: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (Some wiki formatting)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|MAX]]
{{RV|type=command
[[Category:Scripting Commands ArmA|MAX]]
[[Category:Command_Group:_Math|{{uc:{{PAGENAME}}}}]]
{{Command|Comments=
____________________________________________________________________________________________


| arma |Game name=
|game1= arma1
|version1= 1.00


|1.00|Game version=
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| The greater of a,b |DESCRIPTION=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| [[Number]] <nowiki>=</nowiki> a '''max''' b |SYNTAX=
|game4= tkoh
|version4= 1.00


|p1= a: [[Number]] |PARAMETER1=
|game5= arma3
|p2= b: [[Number]] |PARAMETER2=
|version5= 0.50


| [[Number]] |RETURNVALUE=
|gr1= Math
____________________________________________________________________________________________
 
|x1= <code>3 '''max''' 2</code>


Result is 3 |EXAMPLE1=
|descr= The greater value of a and b.
____________________________________________________________________________________________


| [[min]], [[selectMin]], [[selectMax]], [[ceil]], [[floor]], [[linearConversion]], [[Math Commands]] |SEEALSO=
|s1= a [[max]] b


}}
|p1= a: [[Number]]
 
|p2= b: [[Number]]
 
|r1= [[Number]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>3 max 2; // Result is 3</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x2= <sqf>-3 max -2; // Result is -2</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[min]] [[selectMin]] [[selectMax]] [[ceil]] [[floor]] [[linearConversion]] [[Math Commands]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:20, 13 May 2022

Hover & click on the images for description

Description

Description:
The greater value of a and b.
Groups:
Math

Syntax

Syntax:
a max b
Parameters:
a: Number
b: Number
Return Value:
Number

Examples

Example 1:
3 max 2; // Result is 3
Example 2:
-3 max -2; // Result is -2

Additional Information

See also:
min selectMin selectMax ceil floor linearConversion Math Commands

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note