improved g.calc a bit, finally rounding results