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

Lines Matching refs:remainder

255     divide-integer or remainder operation had too many digits (would be
266 attempted (during a divide-integer, divide, or remainder operation), and
1335 coeff, remainder = divmod(op1.int * 10**shift, op2.int)
1337 coeff, remainder = divmod(op1.int, op2.int * 10**-shift)
1338 if remainder:
1427 quotient, remainder = self._divide(other, context)
1428 remainder = remainder._fix(context)
1429 return quotient, remainder
1461 remainder = self._divide(other, context)[1]
1462 remainder = remainder._fix(context)
1463 return remainder
1474 Remainder nearest to 0- abs(remainder-near) <= other/2
1499 # other = +/-infinity -> remainder = self
1504 # self = 0 -> remainder = self, with ideal exponent
1528 # remainder is r*10**ideal_exponent; other is +/-op2.int *
1530 # abs(remainder) <= abs(other)/2
2082 xc, remainder = divmod(5**e, xc)
2083 if remainder:
2675 c, remainder = divmod(c, 100**-shift)
2676 exact = not remainder
5111 def remainder(self, a, b):
5112 """Returns the remainder from integer division.
5121 remainder cannot be calculated).
5123 >>> ExtendedContext.remainder(Decimal('2.1'), Decimal('3'))
5125 >>> ExtendedContext.remainder(Decimal('10'), Decimal('3'))
5127 >>> ExtendedContext.remainder(Decimal('-10'), Decimal('3'))
5129 >>> ExtendedContext.remainder(Decimal('10.2'), Decimal('1'))
5131 >>> ExtendedContext.remainder(Decimal('10'), Decimal('0.3'))
5133 >>> ExtendedContext.remainder(Decimal('3.6'), Decimal('1.3'))
5135 >>> ExtendedContext.remainder(22, 6)
5137 >>> ExtendedContext.remainder(Decimal(22), 6)
5139 >>> ExtendedContext.remainder(22, Decimal(6))
5157 remainder cannot be calculated).
5776 # reduce remainder back to original precision