= Numeral notation
<Numeral notation> specifies how a <number> is written, including its digit alphabet, base and separators. The same integer can appear as decimal $13$, binary $1101_2$ or hexadecimal $\mathrm D_{16}$. A base marker distinguishes the written numeral from an otherwise identical string in another <numeral system>.
This differs from <expression notation>, which also describes operations on represented numbers. For example `0x10` names one integer in a programming convention, while $2^4$ gives an expression evaluating to that same integer. Keeping representation separate from value is important in <algorithms> involving digit constraints or input length.
Back to article page