Convert fractions to terminating, repeating or rounded decimals