{"name":"BIS_fnc_bitwiseAND","title":"BIS fnc bitwiseAND","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_bitwiseAND","revid":328579,"updated":"2022-07-13T17:02:25Z","groups":["Bitwise"],"status":"ok","games":{"arma3":"1.66"},"since":"arma3 1.66","arma3_since":"1.66","description":"Performs bitwise AND operation on two decimal or hexadecimal unsigned 24 bit integers\n(Hexadecimal number representation is simply auto-converted into decimal by the engine)\n\n**Limitations**:\nDue to various limitations of the Real Virtuality engine this function is\nintended to work with unsigned 24 bit integers only. This means that the\nsupported range is 2^0...2^24 (1...16777216)","syntaxes":[{"syntax":"[num1, num2] call BIS_fnc_bitwiseAND","params":[{"name":"num1","type":"Number","description":"decimal or hexadecimal unsigned 24 bit integer","type_expr":"Number"},{"name":"num2","type":"Number","description":"decimal or hexadecimal unsigned 24 bit integer","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number","description":"decimal number"}}],"examples":[{"code":["[2 + 4 + 8 + 32, 1] call BIS_fnc_bitwiseAND; // 0\n[2 + 4 + 8 + 32, 2] call BIS_fnc_bitwiseAND; // 2\n[1 + 2 + 16 + 32, 4 + 8] call BIS_fnc_bitwiseAND; // 0\n[1 + 2 + 16 + 32, 4 + 32] call BIS_fnc_bitwiseAND; // 32\n[1 + 2 + 16 + 32, 16 + 32] call BIS_fnc_bitwiseAND; // 48"]}],"see_also":["BIS_fnc_bitwiseOR","BIS_fnc_bitwiseXOR","BIS_fnc_bitwiseNOT"]}