Before we get into the meat of the subject, let’s look at some preliminary concepts. I go through these topics fairly quickly because nowadays many of these ideas are taught in schools, even in the lower grades. More of these basic ideas are given later in the book, as needed.
Data is stored in computers in the form of bits, which is shorthand for binary digits. A bit is just a number that can have the value either 0 or 1. A bit can be stored in a computer in several ways. A switch can be either open or closed. A magnet can be oriented with its north pole either up or down. Light can be polarized either clockwise or counterclockwise. An electrical pulse can have either a small amplitude or a large amplitude.
These binary digits can be used to form binary numbers. Here are the 3-bit binary numbers and their decimal equivalents. These 3-bit numbers are called octal numbers, meaning that they are numbers in the base 8:
