Why is 1000 = -8 in signed 4-bit binary?

  • Thread starter Thread starter francisg3
  • Start date Start date
  • Tags Tags
    Binary
Click For Summary

Discussion Overview

The discussion revolves around the interpretation of the signed 4-bit binary representation, specifically why the binary number 1000 corresponds to -8 in decimal. Participants explore the concepts of sign bits and 2's complement notation, as well as the implications of representing negative values in binary.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant questions the equivalence of 1000 in signed 4-bit binary to -8, expressing confusion over the sign bit and the 2's complement process.
  • Another participant suggests a method of adding 4 to clarify the representation, though the reasoning behind this suggestion is not elaborated.
  • A third participant explains the concept of the sign bit and provides a breakdown of how negative values are derived using 2's complement, noting that 1000 is the only unused combination that can represent -8.
  • This explanation includes a list of positive and negative values in signed 4-bit binary, reinforcing the range of values from -8 to 7.
  • A later reply indicates that the explanation provided was helpful, suggesting some level of understanding was achieved.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the initial confusion regarding the representation of 1000 as -8, but there is agreement on the mechanics of signed binary representation and the role of the sign bit in determining the value.

Contextual Notes

The discussion does not resolve the initial participant's confusion regarding the 2's complement of -8, and there are no explicit assumptions stated about the understanding of binary notation among participants.

Who May Find This Useful

Individuals interested in binary number systems, particularly those learning about signed binary representations and 2's complement notation.

francisg3
Messages
31
Reaction score
0
I was wondering why 1000 in signed 4-bit binary notation is equal to -8 in decimal. From my understanding, the 1 simply states that sign (1 being negative and 0 being positive) it has no real decimal value. I have read that it is not possible to correctly take the 2's complement of -8 so I cannot come to convince myself that 1000 is in fact -8 in binary.

Thanks for the help!
 
Engineering news on Phys.org
Try adding 4 to it. Then add 4 again.
 
The left-hand bit is indeed the sign bit, but "-0" doesn't really make sense. Plus, if we allowed -0 and +0, we'd have 2 binary values for zero.

The positive values are easy:
0 = 0000
1 = 0001
2 = 0010
3 = 0011
4 = 0100
5 = 0101
6 = 0110
7 = 0111

For the negative values, you need the 2's complement (invert all the bits, then add "1")

-1 = 1110 + 1 = 1111
-2 = 1101 + 1 = 1110
-3 = 1100 + 1 = 1101
-4 = 1011 + 1 = 1100
-5 = 1010 + 1 = 1011
-6 = 1001 + 1 = 1010
-7 = 1000 + 1 = 1001

The only combination not yet used in either positive or negative values is "1000"
This could equal either 8 or -8, so in keeping with the sign bit convention, -8 is used.

So, signed 4-bit binary gives you the values -8 to 7.
Similarly, signed 8-bit binary give you -128 to 127 and signed 16-bit binary give -32768 to 32767.
 
alright i understand now thanks for the explanation!
 

Similar threads

Replies
10
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 12 ·
Replies
12
Views
11K
  • · Replies 15 ·
Replies
15
Views
4K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K