Converting numbers to binary or decimal numbers