What is the correct 6-bit 2's complement representation of -32?

  • Thread starter Thread starter TheMathNoob
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around finding the 6-bit 2's complement representation of -32. Participants explore the implications of representing both +32 and -32 within the constraints of 6 bits in binary notation.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Some participants attempt to clarify the binary representation of 32 and its implications in 2's complement form. Questions arise regarding the feasibility of representing both +32 and -32 within the limitations of 6 bits. Others express confusion about the definitions and workings of 2's complement.

Discussion Status

The discussion is ongoing, with participants providing insights and questioning assumptions about binary representation. There is recognition that -32 can be represented in 6-bit 2's complement, while +32 cannot, leading to further exploration of the topic.

Contextual Notes

Participants note that 6 bits can represent a limited range of numbers, and there is a discussion about the implications of this limitation on the representation of both positive and negative values.

TheMathNoob
Messages
189
Reaction score
4

Homework Statement


write the 6-bit 2's complement representation of -32

Homework Equations

The Attempt at a Solution


the only way to represent the magnitude 32 in binary is by using 6 bits, so it would be 100000. This is a little bit confusing to me hence in 2's complement we always use the most significant bit to indicate negativeness or positiveness. If 100000 is in 2's complement then it should be a negative number and it is if we just apply the math on it. I think that one more bit will be needed but the book says otherwise. 32 in 2's complement in 6 bits is 100000 and -32 in 2's complement 6 bits is 100000.
 
Physics news on Phys.org
TheMathNoob said:

Homework Statement


write the 6-bit 2's complement representation of -32

Homework Equations

The Attempt at a Solution


the only way to represent the magnitude 32 in binary is by using 6 bits, so it would be 100000. This is a little bit confusing to me hence in 2's complement we always use the most significant bit to indicate negativeness or positiveness. If 100000 is in 2's complement then it should be a negative number and it is if we just apply the math on it. I think that one more bit will be needed but the book says otherwise. 32 in 2's complement in 6 bits is 100000 and -32 in 2's complement 6 bits is 100000.
You didn't write the Relevant Equations. How does 2s complement work? What is zero? What is +1? What is -1?
 
You cannot have both ±32 since this would be 65 numbers and 6 bits are only 64 numbers.
 
TheMathNoob said:
write the 6-bit 2's complement representation of -32
Hi TheMathNoob:

Unless the notation of for 6 bit representations of numbers has changed since I learned about them many decades ago, this is a trick question. What is the representation of 64 in 6 bit notation?

Hope this helps.

Regards,
Buzz
 
Buzz Bloom said:
Hi TheMathNoob:

Unless the notation of for 6 bit representations of numbers has changed since I learned about them many decades ago, this is a trick question. What is the representation of 64 in 6 bit notation?

Hope this helps.

Regards,
Buzz
To my knowledge, it has not changed in 50 years, and it is not a trick question. -32 can be written in 6 bit 2's complement, but +32 cannot.
One way to think of it is that the nth bit from the right, starting at n=0, represents 2n, with the leftmost being negative and the rest positive.
 
haruspex said:
-32 can be written in 6 bit 2's complement, but +32 cannot.
Hi haruspex:

Of course you are right. Sloppy thinking on my part, another senior moment. Thanks for your correction.

Regards,
Buzz
 
TheMathNoob said:

The Attempt at a Solution


the only way to represent the magnitude 32 in binary is by using 6 bits, so it would be 100000. This is a little bit confusing to me hence in 2's complement we always use the most significant bit to indicate negativeness or positiveness. If 100000 is in 2's complement then it should be a negative number and it is if we just apply the math on it. I think that one more bit will be needed but the book says otherwise. 32 in 2's complement in 6 bits is 100000 and -32 in 2's complement 6 bits is 100000.
I wonder if you're misreading what the book says. Does it really say the six-bit, two's complement representation of +32 is 1000002? Or does it say the binary representation of 32 is 1000002, and then proceed to find the two's complement of that?

If the book says that the two's complement representation of +32 is 1000002, that's incorrect, as others have pointed out.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K