Im having some trouble with these conversions, specifically numbers out of the -127 to 128 range, and numbers with bases that are not 10. My book is asking for the 2's complement of -192(adsbygoogle = window.adsbygoogle || []).push({}); _{10}and -45_{8}in 8 bits. Here is my work.

-192_{10}

192_{10}= 11000000_{2}

(Do I add on another 0 on the left most end here?)

flipping the bits, I get 00111111_{2}

adding 1 gives 01000000_{2}

the book's answer is 00000010_{2}

how are they getting this?

________________________________

-45_{8}

For this I tried using the shortcut method and got 45_{8}= 00100101_{2}

flipping the bits and adding 1, I get 11011011_{2}

the book's answer is 10111011_{2}

any help?

sorry about posting 2 questions in one thread, I just didn't want to clutter the forum with problems that were so similar.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: 2's Complement

**Physics Forums | Science Articles, Homework Help, Discussion**