min: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(49 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|MIN]]
{{RV|type=command
[[Category:Scripting Commands ArmA|MIN]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">''a'' ''' min''' ''b''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


a: [[Number]]
|game5= arma3
|version5= 0.50


b: [[Number]]
|gr1= Math


'''Type of returned value:'''
|descr= The smaller of a and b.


[[Number]]
|s1= a [[min]] b


'''Compatibility:'''
|p1= a: [[Number]]


Version 2.92 required.
|p2= b: [[Number]]


'''Description:'''
|r1= [[Number]]


The smaller of a,b
|x1= <sqf>3 min 2 // Result is 2</sqf>


'''Example:'''
|x2= <sqf>-3 min -2 // Result is -3</sqf>


3 '''min''' 2 .... result is 2
|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