convert between different radix, pay attention to the spical case n = 0