{"name":"BIS_fnc_vectorDivide","operator":null,"title":"BIS fnc vectorDivide","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_vectorDivide","revid":327960,"updated":"2022-07-13T13:35:15Z","groups":["Vectors"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Divides vector by scalar, by dividing all vector elements.\n\n> [!NOTE]\n> vectorMultiply can be used instead as `vector vectorMultiply 1/scale`, but:\n> - *scale* cannot be 0\n> - in some rare cases, the result is not *exactly* the same as BIS_fnc_vectorDivide - this is due to Floating Point Number precision and rounding.","syntaxes":[{"syntax":"[vector, divider] call BIS_fnc_vectorDivide","since":null,"effect":null,"exec":null,"params":[{"name":"vector","type":"Array of Numbers","optional":true,"default":"[0,0,0]","description":"can be any array of numbers","types":["Array","Number"],"since":null,"text":"vector: Array of Numbers - (Optional, default [0,0,0]) can be any array of numbers"},{"name":"divider","type":"Number","optional":true,"default":"1","description":null,"types":["Number"],"since":null,"text":"divider: Number - (Optional, default 1)"}],"returns":{"type":"Array of Numbers","types":["Array","Number"],"description":null,"text":"Array of Numbers"}}],"examples":[{"text":"```sqf\n[[123, 456, 789], 5] call BIS_fnc_vectorDivide;\n```","code":["[[123, 456, 789], 5] call BIS_fnc_vectorDivide;"]},{"text":"```sqf\n[[1, 2, 3, 4, 5, 6, 7, 8, 9], 5] call BIS_fnc_vectorDivide;\n```","code":["[[1, 2, 3, 4, 5, 6, 7, 8, 9], 5] call BIS_fnc_vectorDivide;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["vectorMultiply","BIS_fnc_vectorMultiply"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Vectors","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}