Converting fractions and square roots