Binario -> Decimal

To pass from binary to decimal you simply have to know the powers of two. 

 

10

9

8

7

6

5

4

3

2

1

0

210

29

28

27

26

25

24

23

22

21

20

1024

512

256

128

64

32

16

8

4

2

1

digito

 

The digit is multiplied by 2n knowing that n is the position occupied by the digit, and all of them are added until the decimal-based number is obtained.