make a decimal-binary, decimal-hex convertor