In binary, we can convert to decimal number, multiplied by the power of two
Explanation:
We are going to convert binary to decimal:
First step: We must write our binary (1010011)
Second step: We are going to enumerate from right to left.
( 1 0 1 0 0 1 1 )
6 5 4 3 2 1 0
Third step: We are going to do a table with the power of two.
2^0 = 1, 2^1 = 2
2^2 = 4, 2^3 = 8
2^4 = 16, 2^5 = 32
2^6 = 64
Fourth step: We will match the result.
64,32,16,8,4,2,1
( 1 0 1 0 0 1 1 )
Last step: We are going to multiply the power of two result X binary numbers and then to add it.
64 x 1 = 64, 32 x 0 = 0
16 x 1 = 16, 8 x 0 = 0
4 x 0 = 0, 2 x 1 = 2
1 x 1 = 1
We add 64 + 16 + 2 + 1 = 83 <-- the decimal number.