Your arcade score is hidden in eight lights. What number do they show?
Your school arcade game shows your score with eight lights. Each lit lamp stands for a one, and each dark lamp stands for a zero. You see one zero zero one zero one one zero. What score did you get?
In decimal, you already use ones, tens and hundreds. Each step left multiplies the place value by ten. In binary, each step left doubles it. Read the eight places from left to right: one hundred and twenty-eight, sixty-four, thirty-two, sixteen, eight, four, two and one.
Read your score from left to right: one zero zero one zero one one zero. The ones sit in the one hundred and twenty-eight, sixteen, four and two places. The zeros add nothing. Add the occupied places to get one hundred and fifty in decimal.
Your friend's score reads zero zero one zero zero one one zero. Look for the ones and add the values at those positions. Pick the decimal score.
Start with one hundred and fifty. Use one hundred and twenty-eight, leaving twenty-two. Skip sixty-four and thirty-two. Use sixteen, leaving six, so skip eight. Use four, then two, leaving zero. Skip one. Write one for each place used and zero for each skipped. One zero zero one zero one one zero.
Now the arcade game needs to store a score of one hundred and sixty-six. Start at the one hundred and twenty-eight place and work down through all eight places. Pick the matching bit pattern.
At one end, all eight bits are zero, so nothing gets added and the score is zero. At the other end, all eight bits are one. Adding every place value, from one hundred and twenty-eight down to one, gives two hundred and fifty-five.
Watch the right edge when you line up the digits. The rightmost place is worth one. The two place is one step to its left. If you start at two on the far right, every place value doubles, so any non-zero answer comes out twice as big.
Hexadecimal, or hex, uses sixteen digits. Zero to nine keep their usual values. The table shows how A to F stand for ten to fifteen. One hex digit matches four bits, with place values eight, four, two and one. Add zeros on the left if a group has fewer than four bits.