max

From Bohemia Interactive Community
Revision as of 12:22, 12 May 2022 by Lou Montana (talk | contribs) (Text replacement - "<code>([^ ]*)\{\{cc\|([^ ]*)\}\}([^ ]*)<\/code>" to "<code>$1// $2$3</code>")
Jump to navigation Jump to search
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