updated rounding functions part 3