Binary Number System
Also known as: Binary, Base 2, Base-2 numeral system
Base-2 positional number system that represents values using only the digits 0 and 1, the foundation of how digital computers store data.
The binary number system writes numbers using only two digits, 0 and 1. Like the familiar decimal system, it is positional, but each place represents a power of two rather than ten: from the right, the places stand for 1, 2, 4, 8, 16 and so on. The binary number 1011 therefore means 8 plus 0 plus 2 plus 1, or 11 in decimal. A single binary digit is called a bit, and a group of eight bits, called a byte, can represent 256 different values, enough for a number from 0 to 255 or one character of basic text.
Gottfried Wilhelm Leibniz described binary arithmetic in detail in the early 18th century, and George Boole's algebra of logic in the mid-19th century later supplied mathematics for manipulating true and false values. In his 1937 master's thesis, Claude Shannon showed that electrical switching circuits could implement Boolean logic and binary arithmetic, a foundation of digital circuit design. Shannon's 1948 work on information theory popularized the word bit, which he credited to John Tukey. Electronic computers adopted binary because circuits that distinguish two states, on or off, are simple and reliable.
Everything a digital computer handles, from text and images to sound and program instructions, is ultimately encoded as patterns of bits held in transistors and other components. Programmers often write binary values in hexadecimal, base 16, because each hex digit corresponds to exactly four bits, which makes long binary strings easier to read. Negative numbers are usually stored in two's complement form, and fractions in floating point. Understanding binary explains many computing quirks, such as why memory sizes come in powers of two and why signed 32-bit integers overflow above 2,147,483,647.
Key points
- Binary uses only the digits 0 and 1, with each position representing a power of two.
- A bit is one binary digit, and a byte of eight bits can represent 256 distinct values.
- Claude Shannon's 1937 thesis linked binary arithmetic and Boolean logic to electrical switching circuits.
- Hexadecimal notation is widely used as a compact shorthand, since each hex digit maps to four bits.
Related entries
Boolean Logic
Branch of algebra in which variables take only the values true and false and are combined with operations such as AND, OR and NOT.
Claude Shannon
American mathematician and engineer who founded information theory and showed that Boolean logic could be implemented in electrical circuits.
Information Theory
Mathematical study of how information is quantified, compressed, stored and transmitted reliably, founded by Claude Shannon in 1948.
Transistor
Semiconductor device that amplifies or switches electrical signals and serves as the basic building block of modern electronics and computer chips.
Floating-Point Arithmetic
Method of representing and calculating with real numbers in binary using a significand and an exponent, trading exactness for a vast range.
Central Processing Unit
Main processor of a computer, which fetches, decodes and executes program instructions and coordinates the operation of other components.
Unicode
Universal character encoding standard that assigns a unique number to every character in the world's writing systems, symbols and emoji.
Computer
Programmable electronic machine that accepts input, processes data according to stored instructions and produces output or stores the results.
Referenced by
Other entries that discuss or point to Binary Number System.