{"name":"BIS_fnc_maxDiffArray","title":"BIS fnc maxDiffArray","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_maxDiffArray","revid":327956,"updated":"2022-07-13T13:05:24Z","groups":["Arrays"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Function to return the maximum difference between all values in an array.","syntaxes":[{"syntax":"[arrayOfNumbers] call BIS_fnc_maxDiffArray","params":[{"name":"arrayOfNumbers","type":"Array","description":"numbers to be tested","type_expr":"Array"}],"returns":{"type":"Number","type_expr":"Number","description":"the biggest difference"}}],"examples":[{"code":["private _maxDiff = [[0, 5, 10, -5]] call BIS_fnc_maxDiffArray; // will return 15 (-5 to 10)"]}]}