correctRounding function

Correct records under linear restrictions for rounding errors