Knowledge base · From Zero to EngineerFrom Zero to Engineer
Converting numbers from other systems to decimal - an alternative method
A multiply-and-add scheme that converts a number written in binary, octal, duodecimal or hexadecimal into a decimal number without writing out the powers of the base.
The previous lesson converted numbers by writing out the value of every position. There is a shorter way: multiply the first digit by the base, add the next digit, multiply by the base again, and so on to the end. It is the same calculation, only arranged differently - less writing and fewer chances to slip. The fractional part works the same way, and at the end you divide the result by the base raised to the number of digits after the point.
Converting numbers from different number systems to decimal using an alternative method
Integer part
Fractional part
correct to four decimal places
Integer part
Fractional part
correct to four decimal places
Integer part
Fractional part
Integer part
Fractional part
correct to four decimal places
Review exercises
Express each of the following numbers in the decimal number system, correct to three decimal places.
Integer part
Fractional part
correct to three decimal places
Integer part
Fractional part
correct to three decimal places
Integer part
Fractional part
correct to three decimal places
Integer part
Fractional part
correct to three decimal places
PhiBoard is a free online whiteboard for maths
This lesson is part of it. On the board itself you can draw a number line, a graph or a figure, write a formula and solve a problem together with a teacher or a friend - live, in the browser. Our app is completely free.
Check whether you really know it
Theory is half the way. Work through a few exercises on the same material - each with a step-by-step solution, no account and no fees.
Frequently asked questions
What is the alternative method of converting to the decimal system?
Take the first digit, multiply it by the base and add the second digit. Multiply the result by the base again and add the third digit, and so on to the last one. For 357 in base eight that gives 3 · 8 = 24, 24 + 5 = 29, 29 · 8 = 232, 232 + 7 = 239.
How do you handle the part after the point with this method?
Run the digits after the point through the same scheme, then multiply the result by the base raised to minus the number of those digits. For 121 in base eight that gives 81, and 81 · 8⁻³ is 81/512, which is 0.1582 correct to four decimal places.
Why is this method faster than writing out the powers?
Because you never need to know or compute the place values. Instead of multiplying each digit by a different power of the base, you only multiply by the base itself and add - operations you can do in your head.
Is the result always exact?
The integer part always is. The fractional part is sometimes a fraction with a non-terminating expansion - then we give it to a fixed accuracy, for example four decimal places. When the denominator is a power of two, as in 11/16, the expansion terminates and the equality is exact.