BIS fnc findExtreme: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function " to "{{RV|type=function ")
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]]; {{codecomment|// returns 8}}
|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

Hover & click on the images for description

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