first commmit.
Adapted the code to the case which the rounding process produces a carry over.