Instead we are faced today with about as many different number systems as there are numbers, having come a long way from the dawn of counting when an even simpler method than “one—two—plenty” prevailed. Man being basically self-centered, he first thought in terms of “me,” or one. Two was not a concept, but two “ones”; likewise, three “ones” and so on. Pebbles were handy, and to represent the ten animals slain during the winter, a cave man could make ten scratches on the wall or string out that many stones.
It is said that the ancient cabbies in Rome had a taximeter that dropped pebbles one by one onto a plate as the wheels turned the requisite number of revolutions. This plate of stones was presented to the passenger at the end of his ride—perhaps where we get the word “fare”! Prices have risen so much that it would take quite a bag of pebbles in the taximeter today.
Using units in this manner to express a sum is called the unitary system. It is the concept that gives rise to the “if all the dollars spent in this country since such and such a time were laid end to end—” analogies. Put to practice, this might indeed have a salutary effect, but long ago man learned that it was not practical to stick to a one-for-one representation.
How long it was before we stumbled onto the fact that we had a “handy” counting system attached to our wrists is not positively known, but we eventually adopted the decimal system. In some places the jump from one to ten was not made completely. The Pueblo Indians, for instance, double up one fist each time a sum of five is reached. Thus the doubled fist and two fingers on the other hand signifies seven. In the mathematician’s language, this is a modulo-5 system. The decimal system is modulo-10; in other words we start over each time after reaching 10.
Besides the word digit in our vocabulary to tie fingers and numbers, the Roman numerals V and X are graphic representations of one hand with thumb widespread, and two hands crossed, respectively. A point worth remembering is that the decimal system was chosen arbitrarily because we happen to have ten digits. There is no divine arithmetical significance in the number 10; in fact mathematicians would prefer 12, since it can be divided more ways.
The ancient Mayans, feeling that if 10 were ten times as good as 1, then surely 20 would be twice the improvement of the decimal system. So they pulled off their boots and added toes to fingers for a modulo-20 number system. Their word for 20, then, is the same as that for “the whole man” for very good reason. Other races adopted even larger base systems, the base of 60 being an example.
If we look to natural reasons for the development of number systems, we might decide that the binary, or two-valued system, did not attain much prominence in naïve civilizations because there are so few one-legged, two-toed animals! Only when man built himself a machine uniquely suited to two-valued mathematics did the binary system come into its own.
Numbers are merely conventions, rigorous conventions to be sure with no semantic vagueness. God did not ordain that we use the decimal system, as evidenced in the large number of other systems that work just fine. Some abacuses use the biquinary system, and there are septal, octal, and sexagesimal systems. We can even express numbers in an ABC or XYZ notation. So a broad choice was available for the computer designer when he began to look about for the most efficient system for his new machine.
Considering only the question of a radix, or base, which will permit the fewest elements to represent the desired numbers, mathematicians can show us that a base of not 10, or 12, or any other whole number is most efficient, but the fraction 2.71828. The ideal model is not found in man, then, since man does not seem to have 2.71828 of anything. However, the strange-looking number does happen to be the base of the system of natural logarithms.
Now a system of mathematics based on 2.71828 might make the most efficient use of the components of the computer, but it would play hob with other factors, including the men who must work with such a weird set of numbers. As is often done, a compromise was made between ideal and practical choices. Since the computer with the most potential seems to be the electronic computer, and since its operation hinges on the opening and closing of simple or sophisticated switches, a two-valued mathematical system, the binary system, was chosen. It wasn’t far from the ideal 2.71828, and there was another even more powerful reason for the choice. Logic is based on a yes-no, true-false system. Here, then, was the best of all possible number systems: the lowly, apparently far-from-sophisticated binary notation. As one writer exclaimed sadly, a concept which had been hailed as a monument to monotheism ended up in the bowels of a robot!
The Binary System
It is believed from ancient writings that the Chinese were aware of the binary or two-valued system of numbers as early as 3000 B.C. However, this fact was lost as the years progressed, and Leibnitz thought that he had discovered binary himself almost 5,000 years later. In an odd twist, Leibnitz apprised his friend Grimaldi, the Jesuit president of the Tribunal of Mathematics in China, of the religious significance of binary 1 and 0 as an argument against Buddhism!
A legend in India also contains indications of the power of the binary system. The inventor of the game of chess was promised any award he wanted for this service to the king. The inventor asked simply that the king place a grain of wheat on the first square of the board, two on the second, and then four, eight, and so on in ascending powers of two until the sixty-four squares of the board were covered. Although the king thought his subject a fool, this amount of wheat would have covered the entire earth to a depth of about an inch!
We are perhaps more familiar with the binary system than we realize. Morse code, with its dots and dashes, for example, is a two-valued system. And the power of a system with a base of two is evident when we realize that given a single one-pound weight and sufficient two-pound weights we can weigh any whole-numbered amounts.
At first glance, however, binary numbers seem a hopeless conglomeration of ones and zeros. This is so only because we have become conditioned to the decimal system, which was even more hopeless to us as youngsters. We may have forgotten, with the contempt of familiarity, that our number system is built on the idea of powers. In grade school we learned that starting at the right we had units, tens, hundreds, thousands, and so on. In the decimal number 111, for example, we mean 1 times 10^2, plus 1 times 10^1, plus 1. We have handled so many numbers so many times we have usually forgotten just what we are doing, and how.
The binary system uses only two numbers: 1 and 0. So it is five times as simple as the decimal system. It uses powers of two rather than ten, again far simpler. Let’s take the binary number 111 and break it down just as we do a decimal number. Starting at the left, we have 1 times 2^2, plus 1 times 2^1, plus 1. This adds up to 7, and there is our answer.
The decimal system is positional; this is what made it so much more effective in the simple expression of large numbers than the Roman numeral system. Binary is positional too, and for larger numbers we continue moving toward the left, increasing our power of two each time. Thus 1111 is 2^3 plus 2^2 plus 2^1 plus 1.
System Development Corp.
A computer teaching machine answering a question about the binary system. ]
We are familiar with decimal numbers like 101. This means 1 hundred, no tens, and 1 unit. Likewise in binary notation 101 means one 4, no 2’s, and one 1. For all its seeming complexity, then, the binary system is actually simpler than the “easy” decimal one we are more familiar with. But despite its simplicity, the binary system is far from being inferior to the decimal system. You can prove this by doing some counting on your fingers.
Normally we count, or tally, by bending down a finger for each new unit we want to record. With both hands, then, we can add up only ten units, a quite limited range. We can add a bit of sophistication, and assign a different number to each finger; thus 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. Now, believe it or not, we can tally up to 55 with our hands! As each unit is counted, we raise and lower the correct finger in turn. On reaching 10, we leave that finger—thumb, actually—depressed, and start over with 1. On reaching 9, we leave it depressed, and so on. We have increased the capacity of our counting machine by 5-1/2 times without even taking off our shoes. The mathematician, by the way, would say we have a capability of not 55 but 56 numbers, since all fingers up would signify 0, which can be called a number. Thus our two hands represent to the mathematician a modulo-56 counter.
This would seem to vanquish the lowly binary system for good, but let’s do a bit more counting. This time we will assign each finger a number corresponding to the powers of 2 we use in reading our binary numbers. Thus we assign the numbers 1, 2, 4, 8, 16, 32, 64, 128, 256, and 512. How many units can we count now? Not 10, or 55, but a good bit better than that. Using binary notation, our ten digits can now record a total of 1,023 units. True, it will take a bit of dexterity, but by bending and straightening fingers to make the proper sums, when you finally have all fingers down you will have counted 1,023, or 1,024 if you are a mathematical purist.
Once convinced that the binary method does have its merits, it may be a little easier to pursue a mastery of representing numbers in binary notation, difficult as it may seem at the outset. The usual way to convert is to remember, or list, the powers of 2, and start at the left side with the largest power that can be divided into the decimal number we want to convert. Suppose we want to change the number 500 into binary. First we make a chart of the positions:
Power of 2 8 7 6 5 4 3 2 1 0 ───────────────────────────────────────────────────────────── Decimal Number 256 128 64 32 16 8 4 2 1 ───────────────────────────────────────────────────────────── Binary Number 1 1 1 1 1 0 1 0 0
Since 256 is the largest number that will go into 500, we start there, knowing that there will be nine binary digits, or “bits” in our answer. We place a 1 in that space to indicate that there is indeed an eighth power of 2 included in 500. Since 128 will go into the remainder, we put a 1 in that space also. Continuing in this manner, we find that we need 1’s until we reach the “8” space which we must skip since our remainder does not contain an 8. We mark a 1 in the 4 space, but skip the 2 and the 1. Our answer, then, in binary notation is 111110100. This number is called “pure binary.” It can also lead to pure torture for human programmers whose eyes begin to bug with this “bit chasing,” as it has come to be called. Everything is of course relative, and the ancient Roman might gladly have changed DCCCLXXXVIII to binary 1101111000, which is two digits shorter.
There is a simpler way of converting that might be interesting to try out. We’ll start with our same 500. Since it is an even number, we put a 0 beneath it. Moving to the left, we divide by two and get 250. This also is an even number, so we mark down a 0 in our binary equivalent. The next division gives 125, an odd number, so we put down a 1. We continue to divide successively, marking a zero for each even remainder, and a 1 for the odd. Although it may not be obvious right away, we are merely arriving at powers of two by a process called mediation, or halving.
Decimal 1 3 7 15 31 62 125 250 500 ───────────────────────────────────────────────────── Binary 1 1 1 1 1 0 1 0 0
Obviously we can reverse this procedure to convert binary numbers to their decimal equivalents.
Computers—the Machines We Think With · The Wunder Library — complete classics, free to read, with narration.