Respuesta :
by expanding the binary number as the sum of different powers of 2. For example:
0000 0110 #binary ==
1*2^3 + 1*2^2 = 12
0000 0110 #binary ==
1*2^3 + 1*2^2 = 12