Now let's compare the number 827.2510 using the four number systems we have discussed. The table below gives the value of this number in binary, octal, decimal, and hexadecimal.
|System||Number||Base||Length of #|
When we order these numbers by the size of the base, we can see a general pattern: the smaller the base, the more digits that are needed to represent the same number. We can also see a special relationship between three of these number systems. Binary, octal, and hexadecimal all have bases that are powers of 2. This relationship allows us to convert between these systems quite easily.
To convert 1473.28 to binary, we simply replace each digit with an equivalent 3-bit binary number.
We can see the 3 to 1 relationship between octal and binary when we compare their bases. Octal has a base of 8 or 23 and binary has a base of 2 or 21. As you might guess, binary and hexadecimal have a 4 to 1 relationship since the base of hexadecimal is 16 or 24. We can also convert easily between binary and hexadecimal using this 4 to 1 relationship.
Since octal and hexadecimal are easy to convert to binary, they are often used as a shorthand method for writing binary numbers. For example, the code for the color blue in this text is 0033CC16 which is much easier to read and write than the binary number below which is what the computer actually understands.
0000000000110011110011002 = BLUE