Navigation

Operators and Keywords

Function List:

C++ API

: bitcmp (A, k)

Return the k-bit complement of integers in A.

If k is omitted k = log2 (flintmax) + 1 is assumed.

bitcmp (7,4)
  ⇒ 8
dec2bin (11)
  ⇒ 1011
dec2bin (bitcmp (11, 6))
  ⇒ 110100

See also: bitand, bitor, bitxor, bitset, bitget, bitcmp, bitshift, flintmax.

Package: octave