Why is this checking to ensure a minimum difference? I expected that you would check that the absolute difference is less than some epsilon.