{"id":42,"date":"2022-05-16T19:13:00","date_gmt":"2022-05-16T18:13:00","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/?page_id=42"},"modified":"2022-05-16T19:55:47","modified_gmt":"2022-05-16T18:55:47","slug":"range-of-binary-numbers","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/range-of-binary-numbers\/","title":{"rendered":"Range of Binary Numbers"},"content":{"rendered":"<p><span data-contrast=\"none\">To figure out the range of numbers that can be stored with a set number of bits, use the following formula:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-44 alignnone\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16191144\/Screenshot-2022-05-16-191047.png\" alt=\"\" width=\"106\" height=\"47\" \/><\/p>\n<p><span data-contrast=\"none\">The reason for taking one away is because the integer 0 needs to be stored.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-45\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16191211\/Screenshot-2022-05-16-191057.png\" alt=\"\" width=\"131\" height=\"108\" \/><\/p>\n<p><span data-contrast=\"none\">This means that the range of integers that can be represented using 8 bits is 0\u00a0<\/span><span data-contrast=\"none\">\u2013<\/span><span data-contrast=\"none\">\u00a0255. Typically we categorise binary in groups of 8 bits (or 1 byte).<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-46\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16191248\/Screenshot-2022-05-16-191125-300x164.png\" alt=\"\" width=\"605\" height=\"331\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16191248\/Screenshot-2022-05-16-191125-300x164.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16191248\/Screenshot-2022-05-16-191125-768x421.png 768w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16191248\/Screenshot-2022-05-16-191125-624x342.png 624w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phshighercomputingscience\/uploads\/sites\/10042\/2022\/05\/16191248\/Screenshot-2022-05-16-191125.png 814w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To figure out the range of numbers that can be stored with a set number of bits, use the following formula: The reason for taking one away is because the integer 0 needs to be stored. This means that the range of integers that can be represented using 8 bits is 0\u00a0\u2013\u00a0255. Typically we categorise [&hellip;]<\/p>\n","protected":false},"author":79984,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-42","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/users\/79984"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":2,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages\/42\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/pages\/42\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phshighercomputingscience\/wp-json\/wp\/v2\/media?parent=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}