The average distance from the Earth to the Sun is approximately \( 1.496 \times 10^8 \) km.
The average distance from the Earth to the Moon is approximately \( 3.844 \times 10^5 \) km.
Thus, the ratio of the distance from the Earth to the Sun and the Earth to the Moon is:
\[
\frac{\text{Distance from Earth to Sun}}{\text{Distance from Earth to Moon}} = \frac{1.496 \times 10^8}{3.844 \times 10^5} \approx 3.89 \times 10^2
\]
Thus, the ratio is approximately \( 10^3 \), so the correct answer is \( 10^6 \).