Terminating Decimal

Welcome! You are encouraged to register with the site and login (for free). When you register, you support the site and your question history is saved.

If p and q are positive integers, can the fraction be expressed as a decimal with only a finite number of nonzero digits?

(1) q is a factor of 12.

(2) p is a factor of 12.