min: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ")
m (Some wiki formatting)
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:


|game1= arma1
|game1= arma1
|version1= 1.00
|version1= 1.00


|game2= arma2
|game2= arma2
|version2= 1.00
|version2= 1.00


|game3= arma2oa
|game3= arma2oa
|version3= 1.50
|version3= 1.50


|game4= tkoh
|game4= tkoh
|version4= 1.00
|version4= 1.00


|game5= arma3
|game5= arma3
|version5= 0.50


|version5= 0.50
|gr1= Math
|gr1= Math


Line 32: Line 28:
|r1= [[Number]]
|r1= [[Number]]


|x1= <code>3 '''min''' 2 {{cc|Result is 2}}</code>
|x1= <sqf>3 min 2 // Result is 2</sqf>


|x2= <code>-3 '''min''' -2 {{cc|Result is -3}}</code>
|x2= <sqf>-3 min -2 // Result is -3</sqf>


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

Latest revision as of 16:21, 13 May 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 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