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!

Finding two numbers in 9's complement arithmetic

  1. Oct 16, 2011 #1
    1. The problem statement, all variables and given/known data
    I have already converted the following numbers 15,765 and -8,773 into 9's complement form. Which gave me the result:

    9's Complement of 15,765 = 99,999-84,234 = 84,234
    9's Complement of -8,773 = 99,999-(-8,773) = 108,772

    Now that I converted the following 5 digit numbers into 9's Complement, am starting to have problems dealing with finding the sum of the two numbers in 9's complement arithmetic and then converting it back into decimal form. I'm not sure if it has anything to do with Sign and magnitude, but can't seem to find a way around this problem.


    2. Relevant equations
    No equations.



    3. The attempt at a solution
    My solution so far is:
    9's Complement of 15,765 = 99,999-84,234 = 84,234
    9's Complement of -8,773 = 99,999-(-8,773) = 108,772
     
    Last edited: Oct 16, 2011
  2. jcsd
  3. Oct 16, 2011 #2

    phinds

    User Avatar
    Gold Member
    2016 Award

    Why would the 9's complement of +1 be something different than +1 ?
     
  4. Oct 16, 2011 #3
    What do mean? I'm not clear of what you are trying to point out.
     
  5. Oct 16, 2011 #4

    phinds

    User Avatar
    Gold Member
    2016 Award

    What I'm trying to point out is that the 9's complement of 1 is 1. 9's complement is a method for representing negative numbers as though they were positive numbers NOT a method for messing up positive numbers.
     
  6. Oct 17, 2011 #5

    phinds

    User Avatar
    Gold Member
    2016 Award

    Actually, that was a bit brief.

    What I really mean is that you seem to misunderstand the both the purpose and the methodology of complementary number systems and I suggest that you read up on them.

    WHY would we want to represent a negative number as a positive number ?

    HOW do we choose to do it (what's the difference between 9's complement and 10's complement) ?

    what are the tradeoffs in implementing a computer with 1's complement vs 2's complement ?
     
  7. Oct 18, 2011 #6
    Sorry, for the late reply. I have just completed the question as well as other questions connected to 9's complement. Can't believe I got stuck on such a simple problem. Turns out a little reading on the topic helped out a lot.
     
  8. Oct 18, 2011 #7

    phinds

    User Avatar
    Gold Member
    2016 Award

    Glad to hear it.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Finding two numbers in 9's complement arithmetic
  1. 9's complement (Replies: 2)

  2. Two's complement (Replies: 3)

  3. 2's complement (Replies: 13)

Loading...