{"id":5,"date":"2023-04-22T19:27:26","date_gmt":"2023-04-22T22:27:26","guid":{"rendered":"https:\/\/difusao.tech\/blog\/?p=5"},"modified":"2023-08-23T13:53:36","modified_gmt":"2023-08-23T16:53:36","slug":"o-que-sao-bits-e-bytes","status":"publish","type":"post","link":"https:\/\/difusao.tech\/blog\/o-que-sao-bits-e-bytes\/","title":{"rendered":"O que s\u00e3o bits e bytes?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.fasim.com.br\/wp-content\/uploads\/2021\/12\/codigobinario-2.jpg\" alt=\"\" width=\"415\" height=\"247\"\/><\/figure>\n\n\n\n<p>Entendendo as unidades de medida na inform\u00e1tica.<\/p>\n\n\n\n<p>Nossa historia vai come\u00e7ar la na tomada, essa mesma a tomada que ligamos os aparelhos el\u00e9tricos do dia a dia.<\/p>\n\n\n\n<p>Os computadores \u201centendem\u201d impulsos el\u00e9tricos, positivos ou negativos, que s\u00e3o representados por 1 ou 0. A cada impulso el\u00e9trico damos o nome de&nbsp;<strong>bit<\/strong>&nbsp;(<em><strong>BI<\/strong>nary digi<\/em><strong><em>T<\/em><\/strong>).<\/p>\n\n\n\n<p>O Bit \u00e9 a menor unidade de dados que a m\u00e1quina consegue representar.<\/p>\n\n\n\n<p>O conjunto de 8 bits forma 1 (um) Byte como mostrado a seguir:<\/p>\n\n\n\n<p>10011101<\/p>\n\n\n\n<p>Como um&nbsp;<em>bit&nbsp;<\/em>representa dois valores (1 ou 0), enquanto um&nbsp;<em>byte<\/em>&nbsp;possui 8&nbsp;<em>bits<\/em>, o&nbsp;<em>byte<\/em>&nbsp;consegue representar at\u00e9 256 valores, pois 2<sup>8<\/sup>&nbsp;= 256. Ou seja, no teclado do seu computador, cada tecla deve representar um&nbsp;<em>byte<\/em>&nbsp;para indicar ao computador que foi acionada.<\/p>\n\n\n\n<p>As pr\u00f3ximas unidades s\u00e3o todas m\u00faltiplas do&nbsp;<em>byte<\/em>, come\u00e7ando pelo&nbsp;<em>kilobyte&nbsp;<\/em>(ou quilobyte). Embora o prefixo quilo signifique 1000, o termo quilobyte e o s\u00edmbolo kB t\u00eam sido usados na \u00e1rea da computa\u00e7\u00e3o para se referir a 1024 (2<sup>10<\/sup>)&nbsp;<em>bytes&nbsp;<\/em>ou 1000 (10\u00b3)&nbsp;<em>bytes<\/em>, dependendo do contexto.<\/p>\n\n\n\n<p>Portanto, a partir da\u00ed, a contagem normalmente \u00e9 feita em rela\u00e7\u00e3o a 1024, ou seja, 1kB (<em>kilobyte<\/em>) corresponde a 1024&nbsp;<em>bytes<\/em>&nbsp;e assim por diante:<\/p>\n\n\n\n<p>1 byte = 8&nbsp;<em>bits<\/em><\/p>\n\n\n\n<p>1 kilobyte (kB) = 1024&nbsp;<strong><em>bytes<\/em><\/strong><\/p>\n\n\n\n<p>1 megabyte (MB) = 1024&nbsp;<strong><em>kilobytes<\/em><\/strong><\/p>\n\n\n\n<p>1 gigabyte (GB) = 1024&nbsp;<strong><em>megabytes<\/em><\/strong><\/p>\n\n\n\n<p>1 terabyte (TB) = 1024&nbsp;<strong>gigabytes<\/strong><\/p>\n\n\n\n<p>1 petabyte PB) = 1024&nbsp;<strong>terabytes<\/strong><\/p>\n\n\n\n<p>1exabyte (EB) = 1024&nbsp;<strong>petabytes<\/strong><\/p>\n\n\n\n<p>1 zettabyte (ZB) = 1024&nbsp;<strong>exabytes<\/strong><\/p>\n\n\n\n<p>1 yottabyte (YB) = 1024&nbsp;<strong>zettabytes<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Entendendo as unidades de medida na inform\u00e1tica. Nossa historia vai come\u00e7ar la na tomada, essa mesma a tomada<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[8,15,6,10,7,9,13,12,14,11],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-armazenamento","tag-armazenamento","tag-binary-digit","tag-bytes","tag-gigabytes","tag-kilobytes","tag-megabytes","tag-o-que-sao-bits","tag-o-que-sao-bits-e-bytes","tag-o-que-sao-bytes","tag-terabytes"],"_links":{"self":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":2,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":8,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/5\/revisions\/8"}],"wp:attachment":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}