1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Binary Addition - 2's Compliment Representation

  1. Sep 6, 2016 #1
    1. The problem statement, all variables and given/known data
    Screen Shot 2016-09-06 at 7.27.10 PM.png

    2. Relevant equations
    Binary Arithmetic

    3. The attempt at a solution
    Is this the right way to do these problems? If I see a binary 1 at the beginning of the binary number do I just do the 2's compliment of that and add them? I am not too sure what it means by assume numbers are represented in 2's compliment. How do I add them exactly?

    New Doc 22_1 (1).jpg

    Attached Files:

  2. jcsd
  3. Sep 6, 2016 #2


    Staff: Mentor

    You did the 2nd part of problem 1. You still need to do the first part of this problem, and both parts of the other four problems.

    For the 1st parts of the five problems, the assumption is that they are all unsigned numbers, so you would add them as you normally would binary numbers. As an aside, 8-bit unsigned numbers have a range of 0 through 255 in base 10. Signed 8-bit numbers have a range of -128 through 127, base 10.

    For the 2nd parts, the assumption is that they are unsigned numbers. A number with a 1 in the highest bit represents a negative number. If the highest bit is 0, the number is positive or maybe zero.
  4. Sep 7, 2016 #3


    User Avatar
    Homework Helper

    You just add the numbers. The actual addition of unsigned and 2's complement numbers produces the same result, with the only difference in the detection of a carry for unsigned numbers or overflow for signed numbers.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted