Definition

A numeral is a symbolic representation of a natural number or, more generally, an integer. The number itself is an abstract mathematical object, while a numeral is the written expression used to denote it.

For example, the numerals 7, VII, and 111 in base can all denote the same number.

Unary numerals

A unary numeral system represents a number by repeating a single mark. This is the simplest numeral system and is closely related to tally marks.

If the alphabet is , we may define the decoding function by

Thus:

Unary notation is conceptually simple, but inefficient for large numbers.

Positional numerals

Most familiar numeral systems are positional: the value of a digit depends both on the digit itself and on its position.

Fix a base with digit alphabet . A numeral is then a finite string of digits from . The associated decoding function is given recursively by


Where is a ‘reverse’ cons. This expresses the usual rule for positional notation: appending a digit shifts the previous value one place to the left and then adds the new digit.

Examples

  • In base , the numeral 101 denotes .
  • In base , the numeral 203 denotes .
  • In base , the numeral A denotes .

Numerals and numbers

The distinction between numerals and numbers is analogous to the distinction between a word and its meaning. Different numeral systems can represent the same number in different ways.

  • Decimal 4
  • Binary 100
  • Roman IV
  • Unary ||||

Each of these is a different numeral for the same number.