previous up next
Go backward to Example: Decimal Number Representation
Go up to Top
Go forward to Multiple Variable Bindings
RISC-Linz logo

Example: Binary Number Representation

Likewise, for any finite sequence b of binary digits 0 and 1, the value

(sum0 <= i < length(b) bi*2i)

denotes the value of this sequence in the binary number system, e.g., the value of [0, 1, 1, 0, 1] is


Generalization to any number base.

Author: Wolfgang Schreiner
Last Modification: November 16, 1999

previous up next