1-54Binary to DecimalThe computer that calculates your pay probably operates with binary numbers, so a conversion takesplace in the computer before the amount is printed on your check. Some computers, however, don’tautomatically convert from binary to decimal. There may be times when you must convertmathematically.To convert a base 2 number to base 10, you must know the decimal equivalent of each power of 2.The decimal value of a power of 2 is obtained by multiplying 2 by itself the number of times indicated bythe exponent for whole numbers; for example, 2^{4} = 2 2 2 2 or 16_{10}.For fractional numbers, the decimal value is equal to 1 divided by 2 multiplied by itself the numberof times indicated by the exponent. Look at this example:The table below shows a portion of the positions and decimal values of the binary system:Remember, earlier in this chapter you learned that any number to the 0 power is equal to 1_{10}.Another method of determining the decimal value of a position is to multiply the preceding value by2 for whole numbers and to divide the preceding value by 2 for fractional numbers, as shown below:Let’s convert a binary number to decimal by using the positional notation method. First, write out thenumber to be converted; then, write in the decimal equivalent for each position with a 1 indicated. Addthese values to determine the decimal equivalent of the binary number. Look at our example: