Convert all remaining functions to use integers.
Use the numerator of the scaling fraction as the number of coefficients when both downscaling and upscaling.