Number System

Subtraction using compliments

Subtraction method mentioned earlier looks good when we do it on paper and pencil but to implement a subtraction method on a digital platform then subtraction using compliments is better and efficient.

r’s compliment:

If we are given numbers M & N with base r, then we can to have to find M – N then we can apply the following method:

If M and N both are positives then

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

If M is negative and N is positive then i.e. – m – n where m & n are magnitudes of M&N

  1. Take r’s compliment of subtrahend N
  2. Add the compliment to minuend M
  3. If we get no carry then discard it otherwise if carry is 1 then, take r’s compliment of the result we get in step 2 and place –ve sign in front of this.

Eg. 7654310 – 6654310

 M=76543

N=66543

10’s compliment of N=33457

As both we ignore carry and answer we get is 0010 which is 2 (not -14) hence it is a wrong answer. It may seem very surprising as we have followed the proper procedure and yet not able to get the answer. Why???????????

Because we have to apply the 2nd rule as M is negative and carry is 1 so  we take 2’s compliment of the answer and final answer we get is – (2’s compliment of 00102) = – 11102 = – 1410

Eg.  – 910 – 1010

Here we see – 1010 can be represented in 2’s compliment in 5 bits so we use 5 bits for both 9= 01001              10=01010

2’s compliment of 9 to represent -9 = 101112

2’s compliment of 10 to represent -10 = 101102

As there is a carry so we’ll not ignore it as M is negative and we’ll calculate 2’s compliment of answer to get the actual answer

 Answer= – (2’s compliment of 01101) = – 10011 = – 1910

And we find the correct answer

Eg.  2610 – 610

26 = 11010

6   = 00110

2’s compliment of 6 = 11010

We ignore the carry as M is positive and answer is 10100

Final answer = 10100 = 20 CORRECT

50 Replies to “Subtraction using compliments

  1. Pingback: researchers
  2. It is in point of fact a nice and helpful piece of infoI am happy that you just shared this helpful info with usPlease keep us informed like this Thanks for sharing

  3. “Your blog never ceases to impress with its depth of knowledge and engaging presentation. This latest post is no exception – it’s informative, thought-provoking, and thoroughly enjoyable. Your writing style makes complex topics accessible and interesting, which is a rare gift. Thank you for your dedication to creating such high-quality content and for sharing it so generously with your readers. Your blog is a true gem, and I look forward to your next post with great excitement!”

  4. Pingback: steenslagfolie
  5. молитвы найти достойного мужа специалист любовной магии солнечный
    знак или асцендент
    что с ним происходит таро видео молитва
    в которой человек славит господа

  6. aa – express отследить посылку, курьерская служба express банк центркредит атырау адрес, банк
    центркредит график работы цезарь шифрлау жүйесі, ассиметриялық шифрлау туркменистан туган жер
    текст, туған жер текст скачать

  7. catan игра правила, catan алматы бангкок погода летом, погода в тайланде в ноябре мейрамбек беспаев кимай сені барамын, қимай
    сені барамын speed up скачать мен сені құшқан үмітім қайда,
    өз жүрегіңнен ұялмайсыңба скачать текст

  8. қойма туралы мақал, қой ешкі туралы мақал мәтелдер келме маған қайта
    скачать ремикс тик ток,
    келме маған қайта музыка скачать исма
    портал, ментальная арифметика цена цифрлық технологияның пайдасы, цифрлық технология
    білім саласында

  9. Pingback: แทงบอล
  10. лучшие настольные игры для компании 18, настольные игры для
    двоих жасыл құс, қожа ахмет яссауи 40
    хикметтері скачать компьютерная вязальная машина алматы,
    вязальная машина мечта сервис центр айфон
    шымкент, взломать айфон цена

  11. Pingback: rtp dultogel
  12. Pingback: John
  13. antonia – amor скачать, скачать песню amor
    remix халыққа қызмет көрсететін дәріхана ұйымының қызмет стандарты, медициналық бұйымдар өндірісі актобе – мангышлак расписание, актобе – мангышлак прибытие мсфо для чайников, мсфо 15

  14. баланың ерні неге дірілдейді, 2 айлық
    баланың үлкен дәреті купить валюту ps store, как пополнить бумажник в playstation store казахстан ағаштан жасалған бұйымдар слайд, ағаштан жасалған ыдыс-аяқтар казахстан на английском, казахстан латиница перевод

  15. дағдарыс орталығы астана киберспортсмен это,
    киберспорт заработок танымал суретшілер, шетел суретшілері
    правовые документы рк, нормативно-правовые документы в сфере образования
    рк

  16. Pingback: wing888
  17. Pingback: discounts
  18. өнімдерін сатуды армандады чистка организма астана, гидроколонотерапия астана қаз бен ит өлеңі,
    ғылыми мәтін тауып жаз лего майнкрафт марвин, лего майнкрафт астана

  19. With havin so much content and articles do you ever run into
    any issues of plagorism or copyright infringement? My blog has a lot of exclusive content I’ve
    either created myself or outsourced but it appears a lot of it is
    popping it up all over the web without my authorization. Do you know any methods to help prevent content from
    being stolen? I’d really appreciate it.

  20. Pingback: cat888
  21. Pingback: Jaxx Liberty
  22. Right here is the perfect webpage for anyone who would like to understand this topic.
    You understand a whole lot its almost hard to argue with
    you (not that I actually will need to…HaHa).
    You certainly put a fresh spin on a topic which has
    been discussed for ages. Great stuff, just wonderful!

Leave a Reply

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