Two's Complement Representation

  • #1
798
1

Homework Statement


When determining the two's complement of a decimal number, one converts the decimal to binary, finds the complement of each individual digit, adds one, and there we have it.

For example,
-4=1100--->0011+1=0100=+4

However, when I apply the same logic for -99, I don't seem to get the same type of results
-99=11100011--->00011100+1=00011101=29
does anyone see where I am going wrong here?
 

Answers and Replies

  • #2
798
1
Figured it out!
 

Related Threads on Two's Complement Representation

  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
8
Views
1K
Replies
2
Views
1K
Replies
2
Views
633
  • Last Post
Replies
1
Views
7K
K
Replies
6
Views
9K
  • Last Post
Replies
2
Views
42K
  • Last Post
Replies
2
Views
11K
  • Last Post
Replies
4
Views
3K
Top