Lines Matching refs:rounding
78 # Unary with optional rounding mode and context:
198 self.p.rounding = self.c.rounding
232 assert(self.c.rounding == self.p.rounding)
233 return self.c.rounding
236 self.c.rounding = val
237 self.p.rounding = val
258 rounding = property(getround, setround)
305 rounding=P.ROUND_HALF_UP,
412 """Determine the effective direction of the rounding when
431 raise ValueError("Unexpected rounding mode: %s" % mode)
457 dir = self.rounding_direction(x, context.p.rounding)
497 ############################ Correct rounding #############################
502 setcontext(Context(prec=21, rounding=ROUND_UP, Emin=-55, Emax=85))
530 rounding for the power function."""
681 Context operands are of type deccheck.Context, rounding mode
682 operands are given as a tuple (C.rounding, P.rounding).
951 for rounding in RoundModes:
952 context.rounding = rounding
1083 for rounding in RoundModes:
1084 context.rounding = rounding
1111 for rounding in RoundModes:
1113 quantizeop = (op[0], op[1], rounding, c)