{"id":59,"date":"2022-09-20T06:06:04","date_gmt":"2022-09-20T06:06:04","guid":{"rendered":"http:\/\/learnlearn.uk\/ibcs\/?page_id=59"},"modified":"2022-10-02T14:46:20","modified_gmt":"2022-10-02T14:46:20","slug":"number-representation-binary","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/","title":{"rendered":"Number Representation in Binary"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Positive Integers<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Positive Integers (positive whole numbers)<\/h3>\n<p>Converting denary to Binary is simple. As binary numbers operate on a base 2 number system (unlike denary which is based 10) each binary digit is worth double that to the right.<\/p>\n<p><strong>Example 1 &#8211; the number 9<\/strong><\/p>\n<p>Here the number 9 can be be represented using the binary<\/p>\n<table dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"100\" \/>\n<col width=\"100\" \/>\n<col width=\"100\" \/>\n<col width=\"100\" \/><\/colgroup>\n<tbody>\n<tr>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:8}\">8<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:4}\">4<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2}\">2<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0}\">0<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0}\">0<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Note how the numbers start from the right hard side and double in value to the left, so the left most binary digits are worth more.<\/p>\n<p><strong>Example 2 &#8211; the number 235<\/strong><\/p>\n<p>To represent larger numbers more bits are required. In order to represent the number 235, 8 bits are required.<\/p>\n<table dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"100\" \/>\n<col width=\"100\" \/>\n<col width=\"100\" \/>\n<col width=\"100\" \/>\n<col width=\"100\" \/>\n<col width=\"100\" \/>\n<col width=\"100\" \/>\n<col width=\"100\" \/><\/colgroup>\n<tbody>\n<tr>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:128}\">128<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:64}\">64<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:32}\">32<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:16}\">16<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:8}\">8<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:4}\">4<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:2}\">2<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0}\">0<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0}\">0<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<td style=\"text-align: center;\" data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:1}\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"arconix-box arconix-box-lgreen\"><div class=\"arconix-box-content\">\n<p><strong>Note<\/strong><\/p>\n<p>For the International Baccalaureate you will need to be able to convert between binary numbers from 0 to 255.<\/p>\n<\/div><\/div>\n\n<\/div><h2 class=\"tabtitle\">Negative Integers<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Negative Integer Representation using Two&#8217;s Complement<\/h3>\n<p>The simple binary number representation is great, but it is limited to positive whole numbers. In order to represent negative numbers we can use on number of different systems including <span style=\"color: #0000ff;\">sign and magnitude, one&#8217;s compliment &amp; two&#8217;s compliment<\/span>. The most efficient system is two&#8217;s compliment.<\/p>\n<p>Watch this video to see how two&#8217;s complement works:<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/LS8ZANp1Yp8\" width=\"850\" height=\"550\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n<\/div><h2 class=\"tabtitle\">Non whole-numbers<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Real numbers (Non-whole numbers)<\/h3>\n<p>Real\/floating point numbers such as 13.75 are represented in binary using a mantissa and exponent system.<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/PZRI1IfStY0\" width=\"850\" height=\"550\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<div class=\"arconix-box arconix-box-lgreen\"><div class=\"arconix-box-content\">\n<p><strong>Note<\/strong><\/p>\n<p>You will not be required to calculate floating point numbers, you just need to be aware that this is how floating point numbers are represented and the limitations of the system (i.e. floating point rounding errors)<\/p>\n<\/div><\/div>\n\n<\/div><h2 class=\"tabtitle\">Practice<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Binary Number Conversion Practice Game<\/h3>\n<p>Improve you binary number conversion skill using this binary game<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/games.penjee.com\/binary-bonanza\/game.php\" width=\"850\" height=\"600\" frameborder=\"no\" scrolling=\"no\"><\/iframe><\/p>\n\n<\/div><h2 class=\"tabtitle\">Resources<\/h2>\n<div class=\"tabcontent\">\n\n<p><a href=\"https:\/\/www.worksheetworks.com\/math\/numbers\/systems.html\">Binary number conversion worksheet generator<\/a><\/p>\n<p>&nbsp;<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Positive Integers (positive whole numbers) Converting denary to Binary is simple. As binary numbers operate on a base 2 number system (unlike denary which is based 10) each binary digit is worth double that to the right. Example 1 &#8211; the number 9 Here the number 9 can be be represented using the binary 8&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Number Representation in Binary<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":70,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Number Representation in Binary - IB Computer Science<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Number Representation in Binary - IB Computer Science\" \/>\n<meta property=\"og:description\" content=\"Positive Integers (positive whole numbers) Converting denary to Binary is simple. As binary numbers operate on a base 2 number system (unlike denary which is based 10) each binary digit is worth double that to the right. Example 1 &#8211; the number 9 Here the number 9 can be be represented using the binary 8&hellip;&nbsp;Read More &raquo;Number Representation in Binary\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/\" \/>\n<meta property=\"og:site_name\" content=\"IB Computer Science\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-02T14:46:20+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/\",\"name\":\"Number Representation in Binary - IB Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\"},\"datePublished\":\"2022-09-20T06:06:04+00:00\",\"dateModified\":\"2022-10-02T14:46:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"IB Computer Science\",\"item\":\"https:\/\/learnlearn.uk\/ibcs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Number Representation in Binary\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"name\":\"IB Computer Science\",\"description\":\"- learnlearn..uk\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\",\"name\":\"IB Computer Science\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"width\":300,\"height\":41,\"caption\":\"IB Computer Science\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Number Representation in Binary - IB Computer Science","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:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/","og_locale":"en_GB","og_type":"article","og_title":"Number Representation in Binary - IB Computer Science","og_description":"Positive Integers (positive whole numbers) Converting denary to Binary is simple. As binary numbers operate on a base 2 number system (unlike denary which is based 10) each binary digit is worth double that to the right. Example 1 &#8211; the number 9 Here the number 9 can be be represented using the binary 8&hellip;&nbsp;Read More &raquo;Number Representation in Binary","og_url":"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/","og_site_name":"IB Computer Science","article_modified_time":"2022-10-02T14:46:20+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/","url":"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/","name":"Number Representation in Binary - IB Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#website"},"datePublished":"2022-09-20T06:06:04+00:00","dateModified":"2022-10-02T14:46:20+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/ibcs\/number-representation-binary\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"IB Computer Science","item":"https:\/\/learnlearn.uk\/ibcs\/"},{"@type":"ListItem","position":2,"name":"Number Representation in Binary"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/ibcs\/#website","url":"https:\/\/learnlearn.uk\/ibcs\/","name":"IB Computer Science","description":"- learnlearn..uk","publisher":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/ibcs\/#organization","name":"IB Computer Science","url":"https:\/\/learnlearn.uk\/ibcs\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","contentUrl":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","width":300,"height":41,"caption":"IB Computer Science"},"image":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/ibcs\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Positive Integers (positive whole numbers) Converting denary to Binary is simple. As binary numbers operate on a base 2 number system (unlike denary which is based 10) each binary digit is worth double that to the right. Example 1 &#8211; the number 9 Here the number 9 can be be represented using the binary 8&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/59"}],"collection":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":6,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/59\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/59\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/media?parent=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}