Converts decimal<->hex and decimal<->binary, without a fixed size limit