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

Lines Matching refs:round

274     """Had to round, losing information.
332 For round-half-up and round-half-even (and for round-half-down and
333 round-up, if implemented), the result of the operation is [sign,inf],
334 where sign is the sign of the intermediate result. For round-down, the
337 round-ceiling, the result is the same as for round-down if the sign of
338 the intermediate result is 1, or is [0,inf] otherwise. For round-floor,
339 the result is the same as for round-down if the sign of the intermediate
1104 def __abs__(self, round=True, context=None):
1107 If the keyword argument 'round' is false, do not round. The
1108 expression self.__abs__(round=False) is equivalent to
1111 if not round:
1641 """Round if it is necessary to keep self within prec precision.
1685 # round if self has too many digits
1743 """Also known as round-towards-0, truncate."""
1763 """Round 5 down"""
1770 """Round 5 to even, rest to nearest."""
1792 """Round down unless digit prec-1 is 0 or 5."""
2366 # round in the new context
2529 # too many digits; round and lose data. If self.adjusted() <
2543 """Round a nonzero, nonspecial Decimal to a fixed number of
2649 # exact we leave the last digit alone. Now the final round to
2650 # p places (or fewer in the case of underflow) will round
2704 # round, and fit to current context
2974 # p+1 digits; final round will raise correct flags
2977 # p+1 digits; final round will raise correct flags
2998 # at this stage, ans should round correctly with *any*
3678 # round if necessary, taking rounding mode from the context
3768 rounding - rounding type (how you round)
3916 This will make it round up for that operation.
5288 If the result must be inexact, it is rounded using the round-half-even
5532 integer to x / 2**shift; use round-to-even in case of a tie.