{"id":155374,"date":"2022-03-26T00:34:31","date_gmt":"2022-03-25T19:04:31","guid":{"rendered":"https:\/\/infinitylearn.com\/surge\/binary-subtraction\/"},"modified":"2023-01-02T12:54:54","modified_gmt":"2023-01-02T07:24:54","slug":"binary-subtraction","status":"publish","type":"post","link":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/","title":{"rendered":"Binary Subtraction"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_37 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><label for=\"item\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input type=\"checkbox\" id=\"item\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' style='display:block'><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#An_Introduction_to_Binary_Subtraction\" title=\"An Introduction to Binary Subtraction\">An Introduction to Binary Subtraction<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#What_is_Binary_Subtraction\" title=\"What is Binary Subtraction?\">What is Binary Subtraction?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#Binary_Subtraction_Rules\" title=\"Binary Subtraction Rules\">Binary Subtraction Rules<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#Example_of_Subtraction_of_Binary_Numbers\" title=\"Example of Subtraction of Binary Numbers\">Example of Subtraction of Binary Numbers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#How_do_you_Subtract_Binary_Numbers\" title=\"How do you Subtract Binary Numbers?\">How do you Subtract Binary Numbers?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#Binary_Subtraction_Example\" title=\"Binary Subtraction Example\">Binary Subtraction Example<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#Subtraction_using_1s_Complement\" title=\"Subtraction using 1\u2019s Complement\">Subtraction using 1\u2019s Complement<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#Binary_Subtraction_Rules_by_1s_Complement\" title=\"Binary Subtraction Rules by 1\u2019s Complement\">Binary Subtraction Rules by 1\u2019s Complement<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#Binary_Subtraction_Examples_using_1s_Complement\" title=\"Binary Subtraction Examples using 1\u2019s Complement\">Binary Subtraction Examples using 1\u2019s Complement<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"An_Introduction_to_Binary_Subtraction\"><\/span>An Introduction to Binary Subtraction<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Binary subtraction is the process of subtracting two binary numbers. The two numbers are represented by two strings of 0s and 1s, with a 1 representing a number and a 0 representing a space. The number being subtracted is represented by the first string of digits and the number being subtracted from it is represented by the second string of digits.<\/p>\n<p>To subtract two binary numbers, first subtract the rightmost 1s from the two numbers. If the result is 0, then the numbers are the same. If the result is a 1, then the number being subtracted from is larger. In this case, subtract the leftmost 1 from the number being subtracted from to get the final result.<\/p>\n<p>For example, to subtract 101 from 111, subtract the rightmost 1s from 101 and 111. This gives a result of 0, so the numbers are the same.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-155373 size-full\" src=\"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/binary-subtraction.jpg\" alt=\"\" width=\"606\" height=\"428\" srcset=\"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/binary-subtraction.jpg?v=1648235067 606w, https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/binary-subtraction-300x212.jpg?v=1648235067 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_is_Binary_Subtraction\"><\/span>What is Binary Subtraction?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Binary subtraction is the process of subtracting two binary numbers. In binary subtraction, each number is represented by a string of 0s and 1s. The first number is subtracted from the second number, and the difference is computed by finding the difference between the two binary representations.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Binary_Subtraction_Rules\"><\/span>Binary Subtraction Rules<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To subtract two binary numbers, first subtract the ones column. If the number in the ones column is the same for both numbers, then subtract the tens column. If the number in the tens column is the same for both numbers, then subtract the hundreds column, and so on.<\/p>\n<p>For example, to subtract 1011 from 1000, first subtract 1 from 1 in the ones column, which leaves 0. Then subtract 1 from 0 in the tens column, which leaves -1. Finally, subtract 1 from -1 in the hundreds column, which leaves 8. Therefore, the final answer is 800.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Example_of_Subtraction_of_Binary_Numbers\"><\/span>Example of Subtraction of Binary Numbers<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The following is an example of subtracting binary numbers:<\/p>\n<p>1010 &#8211; 1100<\/p>\n<p>The answer is 1010 &#8211; 1100 = 10.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_do_you_Subtract_Binary_Numbers\"><\/span>How do you Subtract Binary Numbers?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To subtract binary numbers, you convert the numbers to decimal, and then subtract the decimal values.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Binary_Subtraction_Example\"><\/span>Binary Subtraction Example<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Subtracting binary numbers is the same as subtracting regular numbers, except you have to use the binary representation of the numbers.<\/p>\n<p>For example, to subtract 5 from 3, you would use the binary representation of 5 (101) and 3 (011), and the answer would be 2 (0010).<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Subtraction_using_1s_Complement\"><\/span>Subtraction using 1\u2019s Complement<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To subtract two numbers using 1\u2019s complement, we take the 1\u2019s complement of the first number, add it to the second number, and then take the 1\u2019s complement of the result.<\/p>\n<p>For example, to subtract 5 from 12, we take the 1\u2019s complement of 5 (which is 1010), add it to 12 (which is 1100), and then take the 1\u2019s complement of the result (which is 0101). So the final answer is 7.<\/p>\n<p>5 &#8211; 12 = 7<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Binary_Subtraction_Rules_by_1s_Complement\"><\/span>Binary Subtraction Rules by 1\u2019s Complement<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To subtract two binary numbers using 1\u2019s complement, follow these steps:<\/p>\n<p>1. Invert the second number (flip all the bits).<\/p>\n<p>2. Add the two numbers together.<\/p>\n<p>3. Invert the result (flip all the bits).<\/p>\n<p>For example, to subtract 1010 (decimal 10) from 1111 (decimal 15), follow these steps:<\/p>\n<p>1. Invert the second number (flip all the bits): 0111<\/p>\n<p>2. Add the two numbers together: 0101<\/p>\n<p>3. Invert the result (flip all the bits): 1000<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Binary_Subtraction_Examples_using_1s_Complement\"><\/span>Binary Subtraction Examples using 1\u2019s Complement<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The following are examples of binary subtraction using 1\u2019s complement.<\/p>\n<p>1\u2019s complement of 5 is 1010<br \/>\n1\u2019s complement of 4 is 1000<br \/>\n1\u2019s complement of 3 is 1101<br \/>\n1\u2019s complement of 2 is 1100<br \/>\n1\u2019s complement of 1 is 1011<br \/>\n1\u2019s complement of 0 is 1000<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An Introduction to Binary Subtraction Binary subtraction is the process of subtracting two binary numbers. The two numbers are represented [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"Binary Subtraction","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Learn Binary Subtraction topic of Maths in details explained by subject experts on infinitylearn.com. Register free for online.","custom_permalink":"maths\/binary-substraction\/"},"categories":[13],"tags":[],"table_tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Binary Subtraction - Infinity Learn by Sri Chaitanya<\/title>\n<meta name=\"description\" content=\"Learn Binary Subtraction topic of Maths in details explained by subject experts on infinitylearn.com. Register free for online.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Binary Subtraction - Infinity Learn by Sri Chaitanya\" \/>\n<meta property=\"og:description\" content=\"Learn Binary Subtraction topic of Maths in details explained by subject experts on infinitylearn.com. Register free for online.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/\" \/>\n<meta property=\"og:site_name\" content=\"Infinity Learn by Sri Chaitanya\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/InfinityLearn.SriChaitanya\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-25T19:04:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-02T07:24:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/binary-subtraction.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InfinityLearn_\" \/>\n<meta name=\"twitter:site\" content=\"@InfinityLearn_\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"vipin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Binary Subtraction - Infinity Learn by Sri Chaitanya","description":"Learn Binary Subtraction topic of Maths in details explained by subject experts on infinitylearn.com. Register free for online.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/","og_locale":"en_US","og_type":"article","og_title":"Binary Subtraction - Infinity Learn by Sri Chaitanya","og_description":"Learn Binary Subtraction topic of Maths in details explained by subject experts on infinitylearn.com. Register free for online.","og_url":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/","og_site_name":"Infinity Learn by Sri Chaitanya","article_publisher":"https:\/\/www.facebook.com\/InfinityLearn.SriChaitanya\/","article_published_time":"2022-03-25T19:04:31+00:00","article_modified_time":"2023-01-02T07:24:54+00:00","og_image":[{"url":"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/binary-subtraction.jpg"}],"twitter_card":"summary_large_image","twitter_creator":"@InfinityLearn_","twitter_site":"@InfinityLearn_","twitter_misc":{"Written by":"vipin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/infinitylearn.com\/surge\/#organization","name":"Infinity Learn","url":"https:\/\/infinitylearn.com\/surge\/","sameAs":["https:\/\/www.facebook.com\/InfinityLearn.SriChaitanya\/","https:\/\/www.instagram.com\/infinitylearn_by_srichaitanya\/","https:\/\/www.linkedin.com\/company\/infinity-learn-by-sri-chaitanya\/","https:\/\/www.youtube.com\/c\/InfinityLearnEdu","https:\/\/twitter.com\/InfinityLearn_"],"logo":{"@type":"ImageObject","@id":"https:\/\/infinitylearn.com\/surge\/#logo","inLanguage":"en-US","url":"","contentUrl":"","caption":"Infinity Learn"},"image":{"@id":"https:\/\/infinitylearn.com\/surge\/#logo"}},{"@type":"WebSite","@id":"https:\/\/infinitylearn.com\/surge\/#website","url":"https:\/\/infinitylearn.com\/surge\/","name":"Infinity Learn by Sri Chaitanya","description":"Surge","publisher":{"@id":"https:\/\/infinitylearn.com\/surge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/infinitylearn.com\/surge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#primaryimage","inLanguage":"en-US","url":"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/binary-subtraction.jpg?v=1648235067","contentUrl":"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/binary-subtraction.jpg?v=1648235067","width":606,"height":428},{"@type":"WebPage","@id":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#webpage","url":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/","name":"Binary Subtraction - Infinity Learn by Sri Chaitanya","isPartOf":{"@id":"https:\/\/infinitylearn.com\/surge\/#website"},"primaryImageOfPage":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#primaryimage"},"datePublished":"2022-03-25T19:04:31+00:00","dateModified":"2023-01-02T07:24:54+00:00","description":"Learn Binary Subtraction topic of Maths in details explained by subject experts on infinitylearn.com. Register free for online.","breadcrumb":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/infinitylearn.com\/surge\/"},{"@type":"ListItem","position":2,"name":"Binary Subtraction"}]},{"@type":"Article","@id":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#article","isPartOf":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#webpage"},"author":{"@id":"https:\/\/infinitylearn.com\/surge\/#\/schema\/person\/d931698bc4645b2739855720864f30e2"},"headline":"Binary Subtraction","datePublished":"2022-03-25T19:04:31+00:00","dateModified":"2023-01-02T07:24:54+00:00","mainEntityOfPage":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#webpage"},"wordCount":545,"publisher":{"@id":"https:\/\/infinitylearn.com\/surge\/#organization"},"image":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/binary-substraction\/#primaryimage"},"thumbnailUrl":"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/binary-subtraction.jpg","articleSection":["Maths"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/infinitylearn.com\/surge\/#\/schema\/person\/d931698bc4645b2739855720864f30e2","name":"vipin","image":{"@type":"ImageObject","@id":"https:\/\/infinitylearn.com\/surge\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/c9a84adf9d11e7ad01332089c3e52538?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c9a84adf9d11e7ad01332089c3e52538?s=96&d=mm&r=g","caption":"vipin"},"sameAs":["http:\/\/surge.infinitylearn.com"],"url":"https:\/\/infinitylearn.com\/surge\/author\/vipin\/"}]}},"_links":{"self":[{"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/posts\/155374"}],"collection":[{"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/comments?post=155374"}],"version-history":[{"count":0,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/posts\/155374\/revisions"}],"wp:attachment":[{"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/media?parent=155374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/categories?post=155374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/tags?post=155374"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/table_tags?post=155374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}