change rounding mode based on mode