Bit inversion
In computing and telecommunications, bit inversion refers to the changing of the state of a bit or binary number to the opposite state, for example changing a 0 bit to 1 or vice versa.[src] It is often represented with a tilde (~).[src] It also refers to the changing of a state representing a given bit to the opposite state.[src]
In computing and telecommunications, bit inversion refers to the changing of the state of a bit or binary number to the opposite state, for example changing a 0 bit to 1 or vice versa.[src] It is often represented with a tilde (~).[src] It also refers to the changing of a state representing a given bit to the opposite state.[src] ==Usage in computing== Many popular programming languages implement bit inversion as an operation.[src] For example, in JavaScript, bit inversion is known as a 'bitwise NOT' and is implemented as seen below: var a = 2; var b = ~ a; In this example, a is a 32-bit signed integer and in binary would be .[src] Variable is the bit inversion of variable and equals (−3 in decimal).[src] In Python: >>> a = 2 >>> b = ~ a >>> b -3[src]
10 sentences · 10 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Bit inversion." encyclopegia.org, 2026, https://encyclopegia.org/wiki/bit-inversion. Accessed 26 November 2026.
Chicago
"Bit inversion." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/bit-inversion.
APA
encyclopegia.org. (2026). Bit inversion. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/bit-inversion
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON