Number System

Subtraction using (r-1)’s compliment

(r – 1) ’s compliment:   (M – N) r

This is similar to r’s compliment. There is a difference while dealing with the final carry we get

If we have both M & N positives, then

The Procedure for doing subtraction using (r – 1) ’s compliment is as follow:

  1. Take (r – 1) ’s compliment of subtrahend N
  2. Add it to minuend M
  3. If we get a carry, add 1 to the result otherwise take (r – 1)’s compliment of the result and place a –ve sign in front of it.

If we have negative M & positive N, then i.e. – m – n where m & n are magnitudes of M&N

The Procedure for doing subtraction using (r – 1) ’s compliment is as follow:

  1. Take (r – 1) ’s compliment of subtrahend N
  2. Add it to minuend M

If we get a carry, add 1 to the result and also take (r – 1’s compliment and place a –ve sign in front of it otherwise if there is no carry then do nothing

Eg. 10101002 – 10001002

1’s compliment of 1000100 is 0111011 and then adds to 1010100

Eg. 10001002 – 10101002

        1’s compliment of 1010100 is 0101011 and it is added to 1000100

As we don’t have carry so we take 1’s compliment of the result and put the –ve sign in front

So answer is -0010000   

We don’t have to worry about whether M is larger or N is larger, carry which we get takes care of this thing. So one has to just follow the procedure and we’ll get the result.

49 Replies to “Subtraction using (r-1)’s compliment

  1. Pingback: pglike
  2. Pingback: Saphir Thailand
  3. Pingback: eft cheats
  4. Pingback: Smith & Wesson
  5. Pingback: Emily
  6. Pingback: dark168
  7. Pingback: wing888
  8. Pingback: fox888
  9. Pingback: live webcams
  10. A motiating discussion iss definitely worth
    comment. I belkeve that youu should pubblish more abouut this issue, itt maay not be a taboio subjectt buut usually peoplle ddo nnot discfuss
    suc subjects. To the next! Besst wishes!!

  11. Pingback: ufa168
  12. Pingback: Earn cash fast
  13. Pingback: kc9
  14. Pingback: Aviation Tire
  15. Pingback: kc9
  16. Pingback: Plinko App
  17. Pingback: lazywin888
  18. Pingback: Aviator Game
  19. Pingback: visítalos
  20. Pingback: Freshbet
  21. I like tthe elpful info you provide inn yokur articles.

    I wiull biokmark youhr weblog aand chedk again here regularly.

    I am quiye cettain I’ll learen plenty of nnew sttuff
    right here! Good luck for the next!

  22. Hi there! Do yoou knbow if the make aany plugions to help wwith Seadch Engine
    Optimization? I’m teying to get my blogg to rank foor soe targeted keywords but I’m not seeing vvery good gains.
    If yoou knnow oof any pleaswe share.Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *