Turn your Wi-Fi router over and read the sticker on its belly. Somewhere between the model name and the password there is a line like MAC: 3C:52:82:A1:7F:09, letters mixed in with digits, in pairs. It isn't a code and it isn't a typo. It is a number, written in a system that has sixteen digits instead of ten. Open any colour picker and pure red turns out to be #FF0000: the same system again. And then there is the exam hall. In the BREB Assistant Programmer paper of 2023, one question had no story at all: (2023)₁₀ = (?)₁₆, four options, one mark.
These three have something in common. Each is a number written in a different set of clothes. The quantity doesn't change; only the way we write it does. A machine prefers one way, a programmer another, a question paper a third, and a base conversion is nothing more than changing the clothes without changing the person. That is all this chapter is. Conversion questions come back in bank, BCS and engineering papers year after year, and every one of them is a procedure you can do without fail once you have seen why it works.
By the end you will be able to say why a computer counts in twos, and what a base, a digit and a place weight are. You will read any number in base 2, 8 or 16 and write its decimal value, fractions included. You will write a decimal number, whole or with a fraction, in any base, and know what to do when the fraction never ends. You will move between binary, octal and hexadecimal by grouping bits, without going through decimal. And you will know the words the paper uses: bit, nibble, byte, MSB, LSB.
We go in five parts, easy to hard: the ideas and the words; any base to decimal; decimal to any base, whole numbers first and then fractions; the grouping shortcut between binary, octal and hex; and finally one map of all the roads, with the way the written paper asks for them.