BIS_fnc_maxDiffArray

From Bohemia Interactive Community
Revision as of 22:20, 30 August 2019 by Lou Montana (talk | contribs) (Text replacement - "|= Game version" to "|Game version=")
(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. Use the Talk page or the Forums for discussions.

Notes

Bottom Section