max: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
m (formatting and example)
Line 2: Line 2:


|game1= arma1
|game1= arma1
|version1= 1.00
|version1= 1.00
|game2= arma2
|version2= 1.00
|game3= arma2oa
|version3= 1.50
|game4= tkoh
|version4= 1.00
|game5= arma3
|version5= 0.50


|gr1= Math
|gr1= Math


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


|s1= a '''max''' b
|s1= a '''max''' b


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


Line 16: Line 34:
   
   
|x1= <code>3 '''max''' 2; {{cc|Result is 3}}</code>
|x1= <code>3 '''max''' 2; {{cc|Result is 3}}</code>
|x2= <code>-3 '''max''' -2; {{cc|Result is -2}}</code>


|seealso= [[min]], [[selectMin]], [[selectMax]], [[ceil]], [[floor]], [[linearConversion]], [[Math Commands]]
|seealso= [[min]], [[selectMin]], [[selectMax]], [[ceil]], [[floor]], [[linearConversion]], [[Math Commands]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 16:13, 31 May 2021

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:
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