Here are several example conversions from decimal to hexadecimal using
the right-to-left method. In each case, we repeatedly divide the number
by the base (16), taking the sequence of remainders as the result. The first
remainder generated is the lowest hex digit.