max: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Some wiki formatting)
Line 1: Line 1:
[[Category:Scripting Commands|MAX]]
{{GameCategory|arma1|Scripting Commands}}
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1


|1.00
|version1= 1.00


|gr1= Math
|gr1= Math


| The greater of a,b
|descr= The greater value between a and b


| [[Number]] <nowiki>=</nowiki> a '''max''' b
|s1= a '''max''' b


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


| [[Number]]
|r1= [[Number]]
   
   
|x1= <code>3 '''max''' 2</code>
|x1= <code>3 '''max''' 2; {{cc|Result is 3}}</code>


Result is 3
|seealso= [[min]], [[selectMin]], [[selectMax]], [[ceil]], [[floor]], [[linearConversion]], [[Math Commands]]
 
| [[min]], [[selectMin]], [[selectMax]], [[ceil]], [[floor]], [[linearConversion]], [[Math Commands]]
}}
}}



Revision as of 00:39, 1 February 2021

Hover & click on the images for description

Description

Description:
The greater value between 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

Additional Information

See also:
minselectMinselectMaxceilfloorlinearConversionMath 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