Convert to integers for calculations.