translates binary and decimal (base 2 <=> base 10)