Convert decimal expansion in rational form p/q wehere q is not zero

Convert decimal expansion in rational form p/q wehere q is not zero | Rational Form