Convert between repeating decimals and fractions