Skip to content

Physics · Ch 14 — Electronic Devices

Decimal and Binary Number Systems

14.25

Decimal and Binary Number Systems

The decimal (base-10) system. The number system used in everyday arithmetic is the DECIMAL system, built on TEN distinct digit symbols (00 through 99) and place values that are successive powers of ten: reading from the rightmost (units) digit outward, the place values are 100=110^0=1, 101=1010^1=10, 102=10010^2=100, 103=100010^3=1000, and so on. A decimal number's value is simply the sum of each digit multiplied by its own place value -- e.g. 247=2×102+4×101+7×100247 = 2\times10^2 + 4\times10^1 + 7\times10^0.

The binary (base-2) system. The BINARY system uses only TWO digit symbols, called BITS (binary digits): 00 and 11, with place values that are successive powers of TWO instead of ten: 20=12^0=1, 21=22^1=2, 22=42^2=4, 23=82^3=8, 24=162^4=16, and so on. A binary number's decimal value is found the same way as for decimal -- summing each bit multiplied by its own place value -- e.g. the binary number 101121011_2 has, reading from the left, bits 1,0,1,11,0,1,1 occupying place values 23,22,21,202^3,2^2,2^1,2^0, so

10112=1×23+0×22+1×21+1×20=8+0+2+1=11101011_2 = 1\times2^3 + 0\times2^2 + 1\times2^1 + 1\times2^0 = 8+0+2+1 = 11_{10}

Converting decimal to binary. Converting a decimal number into its binary equivalent is done by REPEATED DIVISION by 22, recording the remainder (00 or 11) at each step, and reading the remainders in REVERSE order (last remainder first). Dividing the number by 22 repeatedly, and keeping track of the remainder at each division, exhausts every place value from lowest to highest, so reading the remainders bottom-to-top reconstructs the binary number from its highest bit down to its lowest. …

Table 1Place values in the decimal and binary number systems, compared
Decimal (base 10)Binary (base 2)
Digit symbols0,1,2,3,4,5,6,7,8,90,1,2,3,4,5,6,7,8,9 (10 symbols)0,10,1 (2 symbols, called bits)
Place values (right to left)100,101,102,103,…10^0,10^1,10^2,10^3,\ldots20,21,22,23,…2^0,2^1,2^2,2^3,\ldots
Numeric place values1,10,100,1000,…1,10,100,1000,\ldots1,2,4,8,16,32,…1,2,4,8,16,32,\ldots