{"id":2321,"date":"2020-12-21T13:37:44","date_gmt":"2020-12-21T13:37:44","guid":{"rendered":"https:\/\/themindpalace.in\/?p=2321"},"modified":"2021-08-26T05:38:44","modified_gmt":"2021-08-26T05:38:44","slug":"language-of-computers-binary","status":"publish","type":"post","link":"https:\/\/themindpalace.in\/index.php\/2020\/12\/21\/language-of-computers-binary\/","title":{"rendered":"Language of Computers &#8211; Binary"},"content":{"rendered":"\n<p>The digital computer is a digital system that performs various computational tasks. <\/p>\n\n\n\n<p>Generally the word digital means:<\/p>\n\n\n\n<ul><li>recording or <strong>showing information in the form of numbers<\/strong>, esp. 0 and 1<\/li><li><strong>showing information as whole numbers<\/strong> rather than in another form such as a picture, graph, etc.<\/li><li>of relating to, or using calculation by numerical methods or by <span style=\"text-decoration: underline;\">discrete units<\/span> (different, unique, and separate units).<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>The decimal digits 0, 1, 2, &#8230;, 9, for example, provide 10 discrete values.<\/p><\/blockquote><\/figure>\n\n\n\n<p>Here the word digital implies a system that can be used by a computer and other electronic equipment, in which <strong>information is sent and received in electronic form as a series of the numbers 1 and 0<\/strong><\/p>\n\n\n\n<p>The first electronic digital computers, developed in the late 1940s, were used primarily for numerical computations. In this case, the discrete elements are the digits (ie., 0, 1,2&#8230;9). From this application, the term digital computer has emerged.<\/p>\n\n\n\n<p>In practice, digital computers function more reliably if only two values are used. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why?<\/h3>\n\n\n\n<p><strong>Computers don&#8217;t understand <\/strong>words or numbers the way we humans do. In the end, everything in the computer is represented by a binary electrical signal that registers data in one of two states: ON or OFF<\/p>\n\n\n\n<p>Any instructions you give to the computer gets converted to binary. Later gets stored, processed within the system. Output again will be presented in the format we humans can understand.<\/p>\n\n\n\n<p>This ON or OFF usaually represented with two numbers 0 and 1. <\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>It&#8217;s called binary numbers as it has only two numbers in this system.<\/p><\/blockquote><\/figure>\n\n\n\n<p>Digital computers use the binary number system, which has two digits: 0 and 1. A binary digit is called a bit.&nbsp;<\/p>\n\n\n\n<p>In digital computers, information is represented in groups of bits.<\/p>\n\n\n\n<ul><li>A group of eight bits is called a byte.<\/li><li>Most computer memories use words whose number of bits is a multiple of 8.<\/li><li>Thus a 16-bit word contains two bytes, and<\/li><li>a 32-bit word is made up of four bytes.<\/li><\/ul>\n\n\n\n<p>It is customary to refer to the number of words (or bytes) in a memory with one of the letters <\/p>\n\n\n\n<p><strong>1 KB<\/strong> (kilobyte) is 2<sup>10<\/sup> = <strong>1024 bytes<\/strong>, <\/p>\n\n\n\n<p><strong>1 MB<\/strong> (megabyte) is 2<sup>20<\/sup> = <strong>1024 Kilo bytes<\/strong>, <\/p>\n\n\n\n<p><strong>1 GB<\/strong> (gigabyte) is 2<sup>30<\/sup> = <strong>1024 Mega bytes<\/strong>, etc.,<\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>By using various coding techniques, groups of bits can be made to represent not only binary numbers but also other discrete symbols, such as decimal digits or letters of the alphabet.<\/p><\/blockquote><\/figure>\n\n\n\n<p>By judicious use of binary arrangements and by using various coding techniques, the groups of bits are used to develop complete sets of instructions for performing various types of computations.<\/p>\n\n\n\n<p>In contrast to the common decimal numbers that employ the base 10 system, binary numbers use a base 2 system with two digits: 0 and 1.<\/p>\n\n\n\n<p>The decimal equivalent of a binary number can be found by expanding it into a power series with a base of 2. <\/p>\n\n\n\n<p>For example, the binary number <strong>1001011 <\/strong>represents a quantity that can be <strong>converted to a decimal number by multiplying each bit by the base 2 raised to an integer power<\/strong> as follows:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>binary base positions<\/td><td>2<sup>6<\/sup>=64<\/td><td>2<sup>5<\/sup>=32<\/td><td>2<sup>4<\/sup>=16<\/td><td>2<sup>3<\/sup>=8<\/td><td>2<sup>2<\/sup>=4<\/td><td>2<sup>1<\/sup>=2<\/td><td>2<sup>0<\/sup>=1<\/td><\/tr><tr><td>given binary number<\/td><td>1<\/td><td>0<\/td><td>0<\/td><td>1<\/td><td>0<\/td><td>1<\/td><td>1<\/td><\/tr><tr><td>multiply base positions with the respective binary digit<\/td><td>1&#215;64=64<\/td><td>0x32=0<\/td><td>0x16=0<\/td><td>1&#215;8=8<\/td><td>0x4=0<\/td><td>1&#215;2=2<\/td><td>1&#215;1 =1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Total sum is 64+0=0+8+0+2+1 = 75<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>Thus the seven bits 1001011 represent a binary number whose decimal equivalent is 75. <\/p><\/blockquote><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>However, <strong>this same group of seven bits represents the letter K<\/strong> when used in conjunction with a binary code for the letters of the alphabet. <\/p>\n\n\n\n<p>It may also represent a control code for specifying some decision logic in a particular digital computer. <\/p>\n\n\n\n<p>In other words, groups of bits in a digital computer are used to represent many different things. <\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>This is similar to the concept that the same letters of an alphabet are used to construct different languages, such as English and French.<\/p><\/blockquote><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Similarly, first few decimal equivalent for binary is given below.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th class=\"has-text-align-center\" data-align=\"center\" scope=\"col\">Decimal<br>number<\/th><th class=\"has-text-align-center\" data-align=\"center\" scope=\"col\">Binary<br>number<\/th><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">0<\/td><td class=\"has-text-align-center\" data-align=\"center\">0<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">1<\/td><td class=\"has-text-align-center\" data-align=\"center\">1<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">2<\/td><td class=\"has-text-align-center\" data-align=\"center\">10<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">3<\/td><td class=\"has-text-align-center\" data-align=\"center\">11<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">4<\/td><td class=\"has-text-align-center\" data-align=\"center\">100<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">5<\/td><td class=\"has-text-align-center\" data-align=\"center\">101<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">6<\/td><td class=\"has-text-align-center\" data-align=\"center\">110<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">7<\/td><td class=\"has-text-align-center\" data-align=\"center\">111<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">8<\/td><td class=\"has-text-align-center\" data-align=\"center\">1000<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">9<\/td><td class=\"has-text-align-center\" data-align=\"center\">1001<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">10<\/td><td class=\"has-text-align-center\" data-align=\"center\">1010<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">11<\/td><td class=\"has-text-align-center\" data-align=\"center\">1011<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">12<\/td><td class=\"has-text-align-center\" data-align=\"center\">1100<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">13<\/td><td class=\"has-text-align-center\" data-align=\"center\">1101<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">14<\/td><td class=\"has-text-align-center\" data-align=\"center\">1110<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">15<\/td><td class=\"has-text-align-center\" data-align=\"center\">1111<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Next<\/strong>:<\/p>\n\n\n\n<p>Memory and binary data<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Computers don\u2019t understand words or numbers the way we humans do. In the end, everything in the computer is represented by a binary electrical signal that registers data in one of two states: ON or OFF<\/p>\n<p>Any instructions you give to the computer gets converted to binary. Later gets stored, processed within the system. Output again will be presented in the format we humans can understand.<\/p>\n<p>This ON or OFF usaually represented with two numbers 0 and 1. <\/p>\n","protected":false},"author":2,"featured_media":2398,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[293,475,2],"tags":[284,294,283],"cp_meta_data":{"_edit_lock":["1629956324:2"],"_last_editor_used_jetpack":["block-editor"],"_edit_last":["2"],"_heateor_sss_meta":["a:2:{s:7:\"sharing\";i:0;s:16:\"vertical_sharing\";i:0;}"],"_jetpack_related_posts_cache":["a:1:{s:32:\"8f6677c9d6b0f903e98ad32ec61f8deb\";a:2:{s:7:\"expires\";i:1777121932;s:7:\"payload\";a:3:{i:0;a:1:{s:2:\"id\";i:2251;}i:1;a:1:{s:2:\"id\";i:320;}i:2;a:1:{s:2:\"id\";i:87;}}}}"],"_thumbnail_id":["2398"]},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/themindpalace.in\/wp-content\/uploads\/2020\/12\/binary.jpg","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/posts\/2321"}],"collection":[{"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/comments?post=2321"}],"version-history":[{"count":21,"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/posts\/2321\/revisions"}],"predecessor-version":[{"id":2406,"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/posts\/2321\/revisions\/2406"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/media\/2398"}],"wp:attachment":[{"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/media?parent=2321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/categories?post=2321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themindpalace.in\/index.php\/wp-json\/wp\/v2\/tags?post=2321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}