Understanding 2's Complement w/ 4 Bits

  • Thread starter Thread starter ECE
  • Start date Start date
  • Tags Tags
    Bits
Click For Summary
SUMMARY

The discussion clarifies that with 4 bits in 2's complement representation, the range of numbers is from -8 to +7. This is due to the way 2's complement encodes negative values, allowing for a total of 16 distinct values. While unsigned magnitude allows representation from 0 to 15, the limitation of bits restricts the range of negative numbers in 2's complement. The article referenced provides a comprehensive explanation of this concept.

PREREQUISITES
  • Understanding of binary number systems
  • Familiarity with 2's complement representation
  • Basic knowledge of signed vs. unsigned integers
  • Concept of bit manipulation
NEXT STEPS
  • Study the mechanics of 2's complement conversion
  • Learn about binary arithmetic operations
  • Explore the differences between signed and unsigned integers
  • Investigate the implications of bit length on number representation
USEFUL FOR

Students of computer science, software engineers, and anyone interested in understanding binary arithmetic and number representation in computing.

ECE
Messages
7
Reaction score
0
Why in 2's complement the range of numbers that can be represented with 4 bits are from -8 to +7? Wouldn't the numbers with 4 bits be till 15? I am confused.Please help me out.

-Thankyou
 
Last edited:
Engineering news on Phys.org
With four bits, you can store 16 different values. You make them represent 0 through 15, which is called unsigned magnitude, or you can make them represent -8 through +7, which is called 2's complement. You cannot represent all the numbers from, say, -8 to +15, because you do not have enough bits.

- Warren
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
6
Views
4K
Replies
9
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
20K
  • · Replies 10 ·
Replies
10
Views
2K