Concept
What value does the two’s-complement bit pattern 1010 represent?
Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk / Chapter 1
"1010 was meant to represent a two’s-complement number, what value would it represent? Negative six. The left-most bit is 1, so it’s negative. This means in order to figure out the value, we have to flip all the bits and add one. Flipping them yields 0101, and adding one to that gives 0110 (we had to do one carry). Since the binary number 0110 is positive six, that must mean that what we started with – 1010 – must be negative six."
Related Ideas
- What is the binary number 1011001110101010₂ in decimal?Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk · Chapter 1
- What value does the binary number 1010 represent as an unsigned number?Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk · Chapter 1
- Why does the same binary bit pattern have different values under different representation schemes?Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk · Chapter 1
- What is the binary number 1011001110101010₂ in hexadecimal?Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk · Chapter 1
- How do place values and counting work in binary?Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk · Chapter 1