Binary Number System: What is it? (Definition & Examples)

💡
Key learnings:
  • Binary Number System Definition: The binary number system is defined as a number system with a base 2, using only the digits 0 and 1.
  • Binary Numbers in Digital Electronics: Binary numbers are crucial in digital electronics for representing on (1) and off (0) states.
  • Conversion to Decimal: Binary numbers can be converted to decimal by multiplying each binary digit by 2 raised to its position power and summing the results.
  • Decimal to Binary Conversion: To convert a decimal number to binary, divide the number by 2 repeatedly and record the remainders.
  • Historical Significance: The binary number system was introduced by Pingala and modernized by Leibniz, playing a vital role in the development of digital technology.

What is the Binary Number System?

In digital electronics, the binary number system provides a convenient way to represent data with two digits. Decimal is a useful comparison because both systems use place value, but binary uses powers of 2 instead of powers of 10.

The decimal, or base-10, system uses the ten digits 0 through 9. A single decimal digit can therefore represent any value from zero to nine.

For larger values, decimal combines digits in positions. Each position has ten times the weight of the position to its right. For example, 625 means six hundreds plus two tens plus five ones.

binary number

Binary follows the same positional idea but uses only 0 and 1. Each position has twice the weight of the position to its right. The linked guide explains the conversion of binary to decimal numbers in more detail.

History of Binary Number System

Around 200 BCE, the Indian prosodist Pingala described procedures for arranging and counting patterns of light and heavy syllables. These two-state patterns parallel binary enumeration, but they were not the modern positional notation that uses the digits 0 and 1.

Gottfried Wilhelm Leibniz described binary arithmetic in an unpublished 1679 manuscript and presented a published account in 1703.
Any nonnegative whole number can be written in binary. Digital systems use bits because two distinct physical state ranges can be labelled 0 and 1.

00010203040506070809
10111213141516171819
20212223242526272829
30313233343536373839
40414243444546474849
50515253545556575859
60616263646566676869
70717273747576777879
80818283848586878889
90919293949596979899

The table shows every two-digit decimal string from 00 through 99. Its two places are decimal digit positions, not bits. The left-hand digit has the greater place value, while the right-hand digit has the smaller place value.

From 00 to 09, the right-hand digit runs through all ten possible values. It then returns to 0 as the left-hand digit increases by one. The same pattern repeats for 10 to 19, 20 to 29, and each following row.

Two decimal positions provide 100 fixed-width strings, from 00 through 99, because 100 equals 102. The general count is (number of basic digits)number of bits. With three decimal positions, 103 gives 1,000 strings from 000 through 999. With n decimal positions, the count is 10n.

The binary system applies this place-value method with two digits: 0 and 1. Each binary digit is called a bit.

In a binary integer, the rightmost position has a weight of 1. Moving one position to the left doubles the weight to 2, then 4, 8, and so on. The rightmost bit has the smallest place value, while the leftmost occupied bit has the greatest place value.

A two-bit unsigned field has 22, or four, patterns: 00, 01, 10, and 11. The general count remains (number of basic digits)number of bits. Therefore, n bits provide 2 to the power of n fixed-width patterns and represent unsigned values from 0 through 2 to the power of n minus 1. Longer finite strings can represent larger nonnegative integers.

Binary Number System Definition

The binary number system is a positional number system with base, or radix, 2. Its two digits are 0 and 1.

Consider the decimal number 625.

Number the digit positions from right to left, starting at 0. The digit 5 is at position 0, the digit 2 is at position 1, and the digit 6 is at position 2. Therefore, 625 equals 6 × 100 + 2 × 10 + 5 × 1. In general, a decimal number can be expressed as:
∑digit × 10corresponding position or bit
Here, 10 is the number of digits in the decimal system, from 0 through 9.
The same positional rule works in any base when 10 is replaced by the number of digits available in that system. The general expression is:
∑digit × (number of digits used in that system)corresponding position or bit
Binary has two available digits. A binary value can therefore be expressed as:
∑digit × (2)corresponding position or bit

543210 Position or bit
101010 Binary digits

For the binary number 101010, the place-value calculation gives 32 + 8 + 2, so its decimal value is 42:

The table below applies the same calculation to several binary values:

 Binary NumberDecimal Equivalent
Position
or bit
76543210
Binary
digits
000000000×27 + 0×26 + 0×25 + 0×24 + 0×23 + 0×22 + 0×21 + 0×20 = 0
000000010×27 + 0×26 + 0×25 + 0×24 + 0×23 + 0×22 + 0×21 + 1×20 = 1
000000100×27 + 0×26 + 0×25 + 0×24 + 0×23 + 0×22 + 1×21 + 0×20 = 2
000000110×27 + 0×26 + 0×25 + 0×24 + 0×23 + 0×22 + 1×21 + 1×20 = 3
000001000×27 + 0×26 + 0×25 + 0×24 + 0×23 + 1×22 + 0×21 + 0×20 = 4
000001010×27 + 0×26 + 0×25 + 0×24 + 0×23 + 1×22 + 0×21 + 1×20 = 5
000001100×27 + 0×26 + 0×25 + 0×24 + 0×23 + 1×22 + 1×21 + 0×20 = 6
000001110×27 + 0×26 + 0×25 + 0×24 + 0×23 + 1×22 + 1×21 + 1×20 = 7
000010000×27 + 0×26 + 0×25 + 0×24 + 1×23 + 0×22 + 0×21 + 0×20 = 8
binary number

The animation below shows how successive binary numbers are counted.

Want To Learn Faster? 🎓
Get electrical articles delivered to your inbox every week.
No credit card required—it’s 100% free.

About Electrical4U

Electrical4U is dedicated to the teaching and sharing of all things related to electrical and electronics engineering.

Leave a Comment