Question

1.Convert the following decimal and binary numbers into signed integer 32-bit representation (2’s complement for negative...

1.Convert the following decimal and binary numbers into signed integer 32-bit representation (2’s complement for negative numbers).

-99

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.
99 /  2  result 49 remainder  1
49 /  2  result 24 remainder  1
24 /  2  result 12 remainder  0
12 /  2  result 6  remainder  0
6  /  2  result 3  remainder  0
3  /  2  result 1  remainder  1
1  /  2  result 0  remainder  1
Read the remainders from bottom to top.
( 99 )10 = ( 1100011 )2
99 in 32-bit binary is
( 99 )10 = ( 00000000000000000000000001100011 )2

Ones complement = Inverting all the bits in binary = 11111111111111111111111110011100
Twos complement = Ones complement + 1 = 11111111111111111111111110011100 + 1 = 11111111111111111111111110011101

Answer:
11111111111111111111111110011101
Add a comment
Know the answer?
Add Answer to:
1.Convert the following decimal and binary numbers into signed integer 32-bit representation (2’s complement for negative...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT