Convert a decimal number to a binary or hexadecimal, and vice versa.