BINARY TO DECIMAL CONVERTER
2
10
10
10

How to convert Binary to decimal

For binary numbers with n digits:

dn-1 ... d3 d2 d1 d0

The decimal number is equal to the sum of binary digits times their power of 2 (2n) respectively.

decimal = d0×20 + d1×21 + d2×22 + ..