parsing a fraction from a string

parsing a Rational from a string with a decimal representation