logical condition in calc offset was wrong. resulting conversion were basically correct but could be slightly different from ilwis3 by using a different offset and then rounding effects were different.