Example 1 — Read the place values
EasyProblem
Read the binary number 010110 off its place-value columns and give its value in decimal.
Solution
-
Write the weight above each bit: 32, 16, 8, 4, 2, 1.
Place value in binary doubles leftward, the same way it multiplies by ten in decimal.
-
Keep only the columns holding a 1: 16, 4 and 2.
A 0 column contributes nothing, so a binary number is the sum of the weights that are switched on.
-
Add them: 16 + 4 + 2 = 22.
Nothing is multiplied. Converting to decimal is addition once the weights are written down.
Answer
010110 is 22.
Takeaway: Binary to decimal is addition: total the weights of the columns holding a 1.