max: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (formatting and example)
m (Text replacement - " " to " ")
Line 32: Line 32:


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



Revision as of 21:03, 10 June 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