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

Discussion Overview

The discussion revolves around determining the decimal values of 1's complement numbers, exploring the conversion process and the rationale behind specific calculations. Participants examine both 1's complement and 2's complement representations.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant notes that the leftmost bit indicates the sign, questioning why the initial value for negative numbers starts at -511 instead of -512, suggesting an addition of 1 is involved.
  • Another participant reflects on the process of adding 1 for 1's complement and contrasts it with 2's complement, indicating that the leftmost bit being 1 signifies a negative number.
  • A different approach is presented where a participant calculates the unsigned value first and then adjusts by subtracting from 1023, arriving at the same decimal value of -280 for the 1's complement number.
  • One participant expresses that the method of calculating the unsigned value and adjusting is easier than the method taught in their book.

Areas of Agreement / Disagreement

Participants present different methods for calculating the decimal values of 1's complement numbers, and while they arrive at similar results, there is no consensus on the preferred method or the reasoning behind the initial values used.

Contextual Notes

Participants' approaches depend on their interpretations of 1's complement and 2's complement systems, and there are unresolved questions about the rationale for starting values in the conversion process.

Who May Find This Useful

Readers interested in binary number systems, specifically those studying computer science or digital electronics, may find this discussion relevant.

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
7K
  • · Replies 1 ·
Replies
1
Views
4K