Determining if a Number is Rational