Convert a binary number to decimal.
Each binary digit represents a power of two; summing the active positions gives the decimal value.
decimal = Σ (bit × 2^position)