Home | History | Annotate | Download | only in python2.7

Lines Matching refs:Rounded

127     'Inexact', 'Rounded', 'Subnormal', 'Overflow', 'Underflow',
166 Underflow (Inexact, Rounded, Subnormal) that indicates that it is only
277 not exact (that is, it needed to be rounded and any discarded digits
299 class Rounded(DecimalException):
300 """Number got rounded (not necessarily changed during rounding).
302 This occurs and signals rounded whenever the result of an operation is
303 rounded (that is, some zero or non-zero digits were discarded from the
307 The rounded signal may be tested (or trapped) to determine if a given
322 class Overflow(Inexact, Rounded):
340 result is 0, or is [1,inf] otherwise. In all cases, Inexact and Rounded
360 class Underflow(Inexact, Rounded, Subnormal):
361 """Numerical underflow with result rounded to 0.
368 The result after an underflow will be a subnormal number rounded, if
372 In all cases, Inexact, Rounded, and Subnormal will also be raised.
376 _signals = [Clamped, DivisionByZero, Inexact, Overflow, Rounded,
1678 context._raise_error(Rounded)
1714 context._raise_error(Rounded)
1737 # 1 indicates that self should be rounded up (away from zero)
2268 context._raise_error(Rounded)
2271 context._raise_error(Rounded)
2328 # compute correctly rounded result: start with precision +3,
2354 # ensures that the Rounded signal will be raised.
2376 # Inexact, Rounded, Clamped. Overflow needs the correct
2381 for exception in Underflow, Subnormal, Inexact, Rounded, Clamped:
2448 # raise Inexact and Rounded where appropriate
2450 context._raise_error(Rounded)
2486 context._raise_error(Rounded)
2569 the context. This method raises the Rounded and Inexact flags
2573 this method except that it doesn't raise Inexact or Rounded.
2591 context._raise_error(Rounded)
2595 """Rounds to the nearest integer, without raising inexact, rounded."""
2957 # raise Rounded and Inexact here---they'll always be raised as
2986 # compute correctly rounded result: increase precision by
3121 # correctly rounded result: repeatedly increase precision by 3
3202 # correctly rounded result: repeatedly increase precision
3473 context._raise_error(Rounded)
3478 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
5362 of the operand as the precision setting; Inexact and Rounded flags
5687 # (truncated, not rounded to nearest).
5812 # easier to compute a correctly rounded result in __pow__