Forced a floating-point division by casting the dividend to avoid the loss of precision for the imgRatio. Previously, it was doing an integral division which truncates the result to the closest integer to zero and then it was casting the result to float.
Forced a floating-point division by casting the dividend to avoid the loss of precision for the
imgRatio
. Previously, it was doing an integral division which truncates the result to the closest integer to zero and then it was casting the result to float.