BIS_fnc_maxDiffArray

From Bohemia Interactive Community
Revision as of 21:33, 3 June 2020 by Lou Montana (talk | contribs) (Text replacement - "^ {{Function\|Comments\=" to "{{Function|Comments=")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Introduced with Arma 2 version 1.001.00
Hover & click on the images for descriptions

Description

Description:
Function to return the maximum difference between all values in an array.

Syntax

Syntax:
[arrayOfNumbers] call BIS_fnc_maxDiffArray
Parameters:
arrayOfNumbers: Array - numbers to be tested
Return Value:
Number - the biggest difference

Examples

Example 1:
_maxDiff = [[0, 5, 10, -5]] call BIS_fnc_maxDiffArray; // will return 15 (-5 to 10)

Additional Information

Execution:
call
See also:
See also needed

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section