Stable floating-point comparison when validating min/maxDistance. SERVER-10641