This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Numerical Computation / Number Representation /

BitNot

FilledSmallSquare BitNot[n] gives the bitwise NOT of the integer n.

FilledSmallSquare Integer mathematical function (see Section A.3.10).

FilledSmallSquare BitNot[n] turns ones into zeros and vice versa in the binary bit representation of n.

FilledSmallSquare Integers are assumed to be represented in two's complement form, with an unlimited number of digits, so that BitNot[n] is simply equivalent to .

FilledSmallSquare See Section 3.2.4.

FilledSmallSquare See also: BitAnd, BitOr, BitXor, Not.

FilledSmallSquare New in Version 4.

Further Examples