BIS fnc findExtreme: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
Killzone Kid (talk | contribs) 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= numbers: [[Array]] - a set of numbers |= | ||
| | |p3= mode: [[Number]] - 0 (find minimum) or 1 (find maximum) |= | ||
| [[Number]]|= Return value | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code><nowiki> | |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
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
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