ensure rounding errors are avoided in offset computation