Binary Negative Numbers
Computers store negative whole numbers using two's complement, where the most significant bit acts as the sign bit. You will find the two's complement by inverting the bits and adding 1, and learn the range of an 8-bit number.
Key terms
- Two's complement
- A method of storing negative numbers: invert every bit of the positive value, then add 1.
- Sign bit
- The most significant bit. In two's complement, 0 means positive and 1 means negative.
- Inverting bits
- Changing every 0 to a 1 and every 1 to a 0.
- 8-bit range
- An 8-bit two's complement number can store values from -128 to +127.
Part of Data Representation.