Two's Complement Representation

  • Thread starter Thread starter sandy.bridge
  • Start date Start date
  • Tags Tags
    Representation
Click For Summary
SUMMARY

The discussion focuses on the process of calculating the two's complement representation of decimal numbers, specifically addressing the conversion of -99. The correct method involves converting the decimal to binary, finding the complement of each digit, and adding one. The user initially misapplied the process, resulting in an incorrect binary representation. Upon reevaluation, the user successfully determined the correct two's complement for -99.

PREREQUISITES
  • Understanding of binary number representation
  • Knowledge of two's complement arithmetic
  • Familiarity with binary addition
  • Basic decimal to binary conversion techniques
NEXT STEPS
  • Study the process of converting negative decimal numbers to binary using two's complement
  • Learn about binary arithmetic operations, including addition and subtraction
  • Explore the implications of two's complement in computer architecture
  • Practice with additional examples of two's complement conversions for various decimal values
USEFUL FOR

Students studying computer science, software engineers working with low-level programming, and anyone interested in understanding binary arithmetic and number representation in computing.

sandy.bridge
Messages
797
Reaction score
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?
 
Physics news on Phys.org
Figured it out!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
9
Views
2K
Replies
5
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 2 ·
Replies
2
Views
11K