{"name":"BIS_fnc_maxDiffArray","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Function to return the maximum difference between all values in an array.","syntaxes":[{"syntax":"[arrayOfNumbers] call BIS_fnc_maxDiffArray","since":null,"effect":null,"exec":null,"params":[{"name":"arrayOfNumbers","type":"Array","optional":false,"default":null,"description":"numbers to be tested","types":["Array"],"since":null,"text":"arrayOfNumbers: Array - numbers to be tested"}],"returns":{"type":"Number","types":["Number"],"description":"the biggest difference","text":"Number - the biggest difference"}}],"examples":[{"text":"```sqf\nprivate _maxDiff = [[0, 5, 10, -5]] call BIS_fnc_maxDiffArray; // will return 15 (-5 to 10)\n```","code":["private _maxDiff = [[0, 5, 10, -5]] call BIS_fnc_maxDiffArray; // will return 15 (-5 to 10)"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Arrays","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}