BlzBitAnd
- Parameters
-
x integer
y integer
- comment
Returns the result of connecting all bits of both numbers using AND (in regards of binary numeral system). It tells which bits are set for both integers.
3&1 => 1 (0011 & 0001 => 0001) 2&1 => 0 (0010 & 0001 => 0000) 11&7 => 3 (1011 & 0111 => 0011) 13&5 => 5 (1101 & 0101 => 0101) 12&6 => 4 (1100 & 0100 => 0100)
- pure
- This function is pure. For the same values passed to it, it will always return the same value.
- patch
1.31.0.11889
- Source
- common.j
- return type
integer
- Source code
native BlzBitAnd takes integer x, integer y returns integer