Rounding interpolation weight when very close to 0 or 1 to avoid computing the interpolation.