Number Systems
On the File menu, click Print to print the information.
Number Systems
III. Binary System

The binary system plays an important role in computer technology. The first 20 numbers in the binary notation are 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111, 10000, 10001, 10010, 10011, 10100. Any number can be expressed in the binary system by the sum of different powers of two. For example, starting from the right, 10101101 represents (1 × 20) + (0 × 21) + (1 × 22) + (1 × 23) + (0 × 24) + (1 × 25) + (0 × 26) + (1 × 27) = 173.

Arithmetic operations in the binary system are extremely simple. The basic rules are: 1 + 1 = 10, and 1 × 1 = 1. Zero plays its usual role: 1 × 0 = 0, and 1 + 0 = 1. Addition, subtraction, and multiplication are done in a fashion similar to that of the decimal system:

Because only two digits (or bits) are involved, the binary system is used in computers, since any binary number can be represented by, for example, the positions of a series of on-off switches. The on position corresponds to a 1, and the off position to a 0. Instead of switches, magnetized dots on a magnetic tape or disk also can be used to represent binary numbers: a magnetized dot stands for the digit 1, and the absence of a magnetized dot is the digit 0. Flip-flops—electronic devices that can only carry two distinct voltages at their outputs and that can be switched from one state to the other state by an impulse—can also be used to represent binary numbers. Logic circuits in computers carry out the different arithmetic operations of binary numbers; the conversion of decimal numbers to binary numbers for processing, and of binary numbers to decimal numbers for the readout, is done electronically.