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: Going from sign/magnitude of a hex value to it's two's complement

  1. Nov 17, 2014 #1
    1. The problem statement, all variables and given/known data

    Hi all!

    You are given the hex 9AB. I need to go from sign and magnitude of it, to it's two's complement (in 13-bit).

    3. The attempt at a solution

    What I did was convert the hex to binary:

    0100110101011 <-- I added an extra 0 for the 13th bit

    I then flipped the digits, and added "1" and got this:


    The answer to this is supposed to be 2475, and I'm not getting that. Would appreciate any help anyone can give.

  2. jcsd
  3. Nov 17, 2014 #2


    Staff: Mentor

  4. Nov 18, 2014 #3


    User Avatar
    Gold Member

    Your two's complement is correct.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted