The integer points close to a curve III