min: 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 (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Line 31: Line 31:
|x2= <code>-3 '''min''' -2 {{cc|Result is -3}}</code>
|x2= <code>-3 '''min''' -2 {{cc|Result is -3}}</code>


|seealso= [[max]], [[selectMin]], [[selectMax]], [[ceil]], [[floor]], [[linearConversion]], [[Math Commands]]
|seealso= [[max]] [[selectMin]], [[selectMax]], [[ceil]], [[floor]], [[linearConversion]], [[Math Commands]]
}}
}}

Revision as of 17:45, 20 January 2022

Hover & click on the images for description

Description

Description:
The smaller of a and b.
Groups:
Math

Syntax

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

Examples

Example 1:
3 min 2 // Result is 2
Example 2:
-3 min -2 // Result is -3

Additional Information

See also:
max selectMinselectMaxceilfloorlinearConversionMath 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