Ones Complement
Result
Ones Complement 240
Original Binary 00001111
Complement Binary 11110000
Find ones complement (bit flip) of a binary number. Flips all bits: 0→1, 1→0. For 8-bit: flip each bit independently. Example: 00001111 → 11110000
Formula
Ones Complement = (2^n - 1) - Number (flips all bits)
15 (8-bit)
Inputs
- Number (0-255 for 8-bit): 15
- Bit Width: 8
00001111 → 11110000 = 240
Frequently asked questions
Used for?
Legacy signed integer representation; replaced by two's complement