Determine the decimal values of the following 1's complement numbers:

  • Context: MHB 
  • Thread starter Thread starter shamieh
  • Start date Start date
  • Tags Tags
    Numbers
Click For Summary
SUMMARY

This discussion focuses on determining the decimal values of 1's complement and 2's complement binary numbers. The participants clarify that in 1's complement, a leading '1' indicates a negative value, and the conversion involves starting from -511 for 10-bit numbers. The calculations provided demonstrate how to derive decimal values from binary representations, with specific examples showing that 1011100111 equals -280 in 1's complement and -281 in 2's complement. The discussion highlights a more efficient method for calculating these values by first determining the unsigned binary value and then adjusting based on the total number of bits.

PREREQUISITES
  • Understanding of binary number systems
  • Familiarity with 1's complement and 2's complement concepts
  • Basic arithmetic operations with binary numbers
  • Knowledge of bit representation and signed numbers
NEXT STEPS
  • Study the differences between 1's complement and 2's complement representations
  • Learn how to convert binary numbers to decimal using 1's complement
  • Explore the implications of signed versus unsigned binary numbers
  • Investigate the efficiency of different methods for binary-to-decimal conversion
USEFUL FOR

Students and professionals in computer science, particularly those studying digital systems, binary arithmetic, and computer architecture, will benefit from this discussion.

shamieh
Messages
538
Reaction score
0
Determine the decimal values of the following 1's complement numbers:

So i understand that if the left most bit number is a 1 it is a negative, and if it is a 0 it is poisitive. But my question is why do they start out with -511 when $$2^9$$ is obviously -512. Why are they adding 1 to it initially?

1011100111 = -511 + 128 + 64 + 32 + 4 + 2 + 1 = -280
 
Technology news on Phys.org
After looking at it some more, it looks like I would say -511 + [numbers here] and I would + 1 initially, I guess that 's what "1's complacent means", similarly when it 's "2's complacent" it looks like I would not +1, but would still have a negative number if my left most bit began with a 1.

Decimal values (1’s complement)
(a) 0111011110 = 256 + 128 + 64 + 16 + 8 + 4 + 2 = 478
(b) 1011100111 = -511 + 128 + 64 + 32 + 4 + 2 + 1 = -280

Decimal values (2’s complement)
(a) 0111011110 = 256 + 128 + 64 + 16 + 8 + 4 + 2 = 478
(b) 1011100111 = -512 + 128 + 64 + 32 + 4 + 2 + 1 = -281
 
The way I look at one's complement is to first find the unsigned value:

$$(1011100111)_2=1+2+4+32+64+128+512=743$$

Now count the number of binary digits, which is 10, and so subtract $2^{10}-1=1023$:

$$743-1023=-280$$
 
Wow that way is so much easier then what the book teaches.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
9K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
1
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
6K
  • · Replies 1 ·
Replies
1
Views
4K