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: 9's complement

  1. Feb 15, 2009 #1
    Find the 4-digit complement of a) 0232 b) 9644

    3. The attempt at a solution

    I'm not really sure what is being asked here. When asked what form the numbers were given in and whether the problem was talking about 9's complement, his response was "the answer is 9's complement". So I don't really know what to do since they appear to be in 9's complement form already. Does anyone think they can help?
  2. jcsd
  3. Feb 15, 2009 #2
    One of the uses of 9's complement notation is to convert a decimal into its negative form so that an addition can be performed instead of subtraction, thus obviating the necessity of borrowing, etc.

    The nine's complement can be obtained by subtracting from nine of each and every digit of the original number.

    For example, the nine's complement of 1357 would be 8642, since 9-1=8, 9-3=6, 9-5=4, 9-7=2.

    To do a subtraction, we simply add the first number to the nine's complement of the second number, PLUS 1, then ignore the 'Carry'.

    For example, to do 524-256
    we calculate 524+743+1=1268, drop the 1 (carry) to give 268.

    See for example:
  4. Feb 15, 2009 #3
    thanks. I just wanted to make sure on that.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Similar Threads for complement
2's complement of binary numbers and registers