Handle case of very small values creating an infinite ratio.