test rounding error accumulation logic