Positional number representation is the convention that a digit’s contribution to a number depends on both its value and its position. The same digit “1” means one in the units place, ten in the tens place, and a hundred in the hundreds place — its weight is the base raised to its position index.
A number in base with integer digits and fractional digits is
where is the digit at position . The integer positions go to the left of the radix point; the fractional positions go to the right.
The base tells you two things: how many distinct digit symbols you have ( through ), and how much each position weighs more than the one to its right. Decimal uses base because we have ten fingers; computers use base 2 because a switch has two states.
Example. The binary fraction is
Hexadecimal works the same way with as the base: . The "" prefix is just a convention to flag “the digits that follow are base-” — the value is independent of how it’s written.
For going between bases mechanically, see Base Conversion.