Why can a computer display the same value as 10100111 or just A7?
A memory viewer shows one zero one zero, zero one one one in binary. Switch to hexadecimal and you see A seven. Both displays show the same value. Which bits give you the A, and which give you the seven?
The four bit places are eight, four, two and one. Zero one one one uses four, two and one, giving seven. One zero one zero uses eight and two, giving ten, or A. Hex uses A to F for ten to fifteen in order. Each group of four bits gives one hex digit.
Watch the split in this five-bit number. Start at the right edge and count four bits back. That leaves a single one on the left. Fill the empty places to its left with zeros, so you have two complete groups.
Here is another five-bit number: one zero one one zero. You need two complete groups of four. Where should the split go, and where should the extra zeros go? Pick the correct pair.
In eight-bit binary, the places start at one hundred and twenty-eight on the left and halve each time. Add the places with a one: thirty-two plus four plus one gives thirty-seven. In two-digit hex, the places are sixteens and ones. Two sixteens and five ones also give thirty-seven.
Start at the right and split the eight bits into one zero one zero and zero one one one. The left group gives eight plus two, which is ten, so write A. The right group gives four plus two plus one, which is seven. Read the digits left to right: A seven.
Now try zero one one one, one zero one zero. Split the eight bits from the right, then turn each group into a hex digit. Which two-digit answer keeps the groups in their original order? Pick one.
Start with hex zero seven. Give each digit its own group of four bits. Zero gives four zeros. Seven uses the four, two and one places, leaving a zero in the eight place. Join the groups left to right to get zero zero zero zero, zero one one one.
Look at hex A seven. If you join one one one straight on to the bits for A, you leave only three places for the seven. That shifts the bits for A into lower-value places. Keep zero one one one as a complete group to preserve the value.
Calculate the hexadecimal and eight-bit binary equivalents of decimal one hundred and ninety-seven. Show your working. Divide by sixteen: twelve sixteens and five left over. Twelve is C, so write C five. C gives one one zero zero. Five gives zero one zero one. Join both groups.