BIS fnc findExtreme: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
No edit summary
Line 13: Line 13:
| [numbers, mode] call [[BIS_fnc_findExtreme]]; |= Syntax
| [numbers, mode] call [[BIS_fnc_findExtreme]]; |= Syntax


|p1= numbers: [[Array]] - a set of numbers |=
|p1=  [numbers, mode]: [[Array]]
|p2= mode: [[Number]] - 0 (find minimum) or 1 (find maximum) |=
|p2= numbers: [[Array]] - a set of numbers |=
| minimum: (mode 0) [[Number]]<br />
|p3= mode: [[Number]] - 0 (find minimum) or 1 (find maximum) |=
maximum: (mode 1) [[Number]] |= Return value
| [[Number]]|= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code><nowiki>_result = [[1,4,5,8,3,7], 1] call </nowiki>[[BIS_fnc_findExtreme]]<nowiki>; //_result = 8</nowiki></code> |=  
|x1= <code>_result = <n0wiki>[</nowiki>[1,4,5,8,3,7], 1] [[call]] [[BIS_fnc_findExtreme]]; //_result = 8</code> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[BIS_fnc_lowestNum]], [[selectMin]], [[selectMax]]  |= See also
| [[BIS_fnc_lowestNum]], [[BIS_fnc_greatestNum]], [[selectMin]], [[selectMax]]  |= See also


}}
}}

Revision as of 00:39, 5 November 2016


Hover & click on the images for description

Description

Description:
Returns the minimum or maximum value in an Array.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[numbers, mode] call BIS_fnc_findExtreme;
Parameters:
[numbers, mode]: Array
numbers: Array - a set of numbers
mode: Number - 0 (find minimum) or 1 (find maximum)
Return Value:
Number

Examples

Example 1:
_result = <n0wiki>[</nowiki>[1,4,5,8,3,7], 1] call BIS_fnc_findExtreme; //_result = 8

Additional Information

See also:
BIS_fnc_lowestNumBIS_fnc_greatestNumselectMinselectMax

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

Notes

Bottom Section