# Number Base Converter

###### Perform conversions between the most common number bases wich are decimal, hexadecimal, binary and octal

##### INPUT DATA

##### Results

- Binary 101010
- Decimal 42
- Hexadecimal 2a
- Octal 52

##### How to convert Binary to Decimal

Binary = 101010Decimal = ?

0 * 2ˆ0 = 0

1 * 2ˆ1 = 2

0 * 2^2 = 0

1 * 2ˆ3 = 8

0 * 2ˆ4 = 0

1 * 2ˆ5 = 32

Decimal = 0 + 2 + 0 + 8 + 0 + 32 = 42