band


band(a, b)
      

Return the bitwise and of the integers a and b.

The inputs are treated as if represented in two's complement, even if they are not represented that way internally.

Examples:


band(0b01101, 0b00111)
// 5
      

Also see:

bnot
bior
bxor


Core Module Index | Contents