BIS fnc findExtreme: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *codecomment *\| *\/\/ *([^ ]+) *\}\} " to "{{cc|$1}}") |
||
Line 19: | Line 19: | ||
| [[Number]] | | [[Number]] | ||
|x1= <code>_result = [<nowiki/>[1,4,5,8,3,7], 1] [[call]] [[BIS_fnc_findExtreme]]; {{ | |x1= <code>_result = [<nowiki/>[1,4,5,8,3,7], 1] [[call]] [[BIS_fnc_findExtreme]]; {{cc| returns 8}}_result = [<nowiki/>[1,4,5,8,3,7], 0] [[call]] [[BIS_fnc_findExtreme]]; {{codecomment|// returns 1}}</code> | ||
_result = [<nowiki/>[1,4,5,8,3,7], 0] [[call]] [[BIS_fnc_findExtreme]]; {{codecomment|// returns 1}}</code> | |||
| [[BIS_fnc_lowestNum]], [[BIS_fnc_greatestNum]], [[selectMin]], [[selectMax]] | | [[BIS_fnc_lowestNum]], [[BIS_fnc_greatestNum]], [[selectMin]], [[selectMax]] |
Revision as of 16:31, 29 January 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- ArraysMath
Syntax
- Syntax:
- Syntax needed
- Parameters:
- numbers: Array - a set of numbers
- mode: Number - 0 (find minimum) or 1 (find maximum)
- Return Value:
- Return value needed
Examples
- Example 1:
_result = [[1,4,5,8,3,7], 1] call BIS_fnc_findExtreme; // returns 8_result = [[1,4,5,8,3,7], 0] call BIS_fnc_findExtreme; // returns 1
Additional Information
- See also:
- See also needed
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