Lines Matching refs:Rounded
127 'Inexact', 'Rounded', 'Subnormal', 'Overflow', 'Underflow',
165 Underflow (Inexact, Rounded, Subnormal) that indicates that it is only
276 not exact (that is, it needed to be rounded and any discarded digits
298 class Rounded(DecimalException):
299 """Number got rounded (not necessarily changed during rounding).
301 This occurs and signals rounded whenever the result of an operation is
302 rounded (that is, some zero or non-zero digits were discarded from the
306 The rounded signal may be tested (or trapped) to determine if a given
321 class Overflow(Inexact, Rounded):
339 result is 0, or is [1,inf] otherwise. In all cases, Inexact and Rounded
359 class Underflow(Inexact, Rounded, Subnormal):
360 """Numerical underflow with result rounded to 0.
367 The result after an underflow will be a subnormal number rounded, if
371 In all cases, Inexact, Rounded, and Subnormal will also be raised.
375 _signals = [Clamped, DivisionByZero, Inexact, Overflow, Rounded,
1676 context._raise_error(Rounded)
1712 context._raise_error(Rounded)
1735 # 1 indicates that self should be rounded up (away from zero)
2266 context._raise_error(Rounded)
2269 context._raise_error(Rounded)
2326 # compute correctly rounded result: start with precision +3,
2352 # ensures that the Rounded signal will be raised.
2374 # Inexact, Rounded, Clamped. Overflow needs the correct
2379 for exception in Underflow, Subnormal, Inexact, Rounded, Clamped:
2446 # raise Inexact and Rounded where appropriate
2448 context._raise_error(Rounded)
2484 context._raise_error(Rounded)
2567 the context. This method raises the Rounded and Inexact flags
2571 this method except that it doesn't raise Inexact or Rounded.
2589 context._raise_error(Rounded)
2593 """Rounds to the nearest integer, without raising inexact, rounded."""
2955 # raise Rounded and Inexact here---they'll always be raised as
2984 # compute correctly rounded result: increase precision by
3119 # correctly rounded result: repeatedly increase precision by 3
3200 # correctly rounded result: repeatedly increase precision
3471 context._raise_error(Rounded)
3476 context._raise_error(Rounded)
5046 """Returns a value equal to 'a' (rounded), having the exponent of 'b'.
5049 operand. It may be rounded using the current rounding setting (if the
5115 calculating integer division as described for divide-integer, rounded
5288 If the result must be inexact, it is rounded using the round-half-even
5382 of the operand as the precision setting; Inexact and Rounded flags
5707 # (truncated, not rounded to nearest).
5832 # easier to compute a correctly rounded result in __pow__