Byte: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Joshua David Williams
m (→‎Technical definition: removed the word 'mystical')
imported>Eric M Gearhart
(Added see also section, touched up wording a bit)
Line 1: Line 1:
In computers, '''byte''' is the unit of [[data]]. All of the files on a computer are made of them, from e-mails and pictures to the advanced programs.
In computers, a '''byte''' is a unit of [[data]], consisting of eight [[bit]]s. All data represented on a computer are composed of them, from e-mails and pictures, to programs and data stored on a [[hard drive]].


==Technical definition==
==Technical definition==
In electronics, information is determined by the toggle of two states, usually referred to as 'on' or 'off'. To represent this state, computer scientist use the values of 0 (off) and 1 (on); we refer to this as a [[bit]]. Each byte is made of eight bits, and can represent any number from 0 to 255. We obtain this number of possible values, which is 256 when including the 0, by raising the possible values of a bit (two) to the power of the length of a byte (eight); thus, 2<sup>8</sup> = 256 possible values in a byte.
In electronics, information is determined by the toggle of two states, usually referred to as 'on' or 'off'. To represent this state, computer scientists use the values of 0 (off) and 1 (on); we refer to this value as a [[bit]].  
 
Each byte is made of eight bits, and can represent any number from 0 to 255. We obtain this number of possible values, which is 256 when including the 0, by raising the possible values of a bit (two) to the power of the length of a byte (eight); thus, 2<sup>8</sup> = 256 possible values in a byte.


Bytes can be used to represent a countless array of data types, from characters in a [[string (programming)|string]] of text, to the contents of a [[binary executable]] file. Every file is composed of them.
Bytes can be used to represent a countless array of data types, from characters in a [[string (programming)|string]] of text, to the contents of a [[binary executable]] file. Every file is composed of them.
Line 8: Line 10:
==Sub-units==
==Sub-units==
While basic, byte is not the most commonly used unit of data. Because files are normally many thousands or even billions of times larger than a byte, other terms are used to increase readability. [[Prefix|Prefixes]] are added to the word byte, such as [[kilo]] for one thousand bytes, [[mega]] for one million, [[giga]] for one billion, and even [[tera]], which is one trillion.
While basic, byte is not the most commonly used unit of data. Because files are normally many thousands or even billions of times larger than a byte, other terms are used to increase readability. [[Prefix|Prefixes]] are added to the word byte, such as [[kilo]] for one thousand bytes, [[mega]] for one million, [[giga]] for one billion, and even [[tera]], which is one trillion.
==See also==
*Half of a byte (four bits) is referred to as a [[nibble (computers)|nibble]].
*Two bytes together (sixteen bits) is referred to as a [[word (computers)|word]].


[[Category:CZ Live]]
[[Category:CZ Live]]
[[Category:Computers Workgroup]]
[[Category:Computers Workgroup]]

Revision as of 15:50, 6 April 2007

In computers, a byte is a unit of data, consisting of eight bits. All data represented on a computer are composed of them, from e-mails and pictures, to programs and data stored on a hard drive.

Technical definition

In electronics, information is determined by the toggle of two states, usually referred to as 'on' or 'off'. To represent this state, computer scientists use the values of 0 (off) and 1 (on); we refer to this value as a bit.

Each byte is made of eight bits, and can represent any number from 0 to 255. We obtain this number of possible values, which is 256 when including the 0, by raising the possible values of a bit (two) to the power of the length of a byte (eight); thus, 28 = 256 possible values in a byte.

Bytes can be used to represent a countless array of data types, from characters in a string of text, to the contents of a binary executable file. Every file is composed of them.

Sub-units

While basic, byte is not the most commonly used unit of data. Because files are normally many thousands or even billions of times larger than a byte, other terms are used to increase readability. Prefixes are added to the word byte, such as kilo for one thousand bytes, mega for one million, giga for one billion, and even tera, which is one trillion.

See also

  • Half of a byte (four bits) is referred to as a nibble.
  • Two bytes together (sixteen bits) is referred to as a word.