bnot


bnot(i)
      

Return the bitwise not of the integer i.

The input is treated as if represented in two's complement, even if it may not be represented that way internally.

Examples:


bnot(0)
// -1

bnot(3)
// -4
      

Also see:

band
bior
bxor


Core Module Index | Contents