Convert fractions to integers where appropriate during addition.