In a binary (base 2) number, each "1" represents an integer 2 raised to the power of that character's bit position.
So, for the following 8-bit binary number:
1
0
7
6
5
4
3
2
10110011(base 2) = 2^7 + 2^5 + 2^4 + 2^1 + 2^0
= 128 + 32 + 16 + 2 + 1
= 179 (base 10)
Now you try it...
Enter an 8-bit binary number:
* 2^0 =
* 2^1 =
* 2^2 =
* 2^3 =
* 2^4 =
* 2^5 =
* 2^6 =
* 2^7 =
Number in base 10 =