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

Lines Matching refs:abs

585             self._int = str(abs(value))
691 n, d = abs(f).as_integer_ratio()
1188 # OK, now abs(op1) > abs(op2)
1200 # Now, op1 > abs(op2) > 0
1474 Remainder nearest to 0- abs(remainder-near) <= other/2
1513 # expdiff >= prec+1 => abs(self/other) > 10**prec
1516 # expdiff <= -2 => abs(self/other) < 0.1
1530 # abs(remainder) <= abs(other)/2
1925 modulo = abs(int(modulo))
1949 so that 10**abs(other._exp) is a feasible calculation."""
1952 # value of other. Write x = xc*10**xe and abs(y) = yc*10**ye, with xc
1990 # if len(str(abs(yc*xe)) <= -ye then abs(yc*xe) < 10**-ye,
1992 # Similarly, len(str(abs(yc)*xc_bits)) <= -ye implies |y|
2116 if xe != 0 and len(str(abs(yc*xe))) <= -ye:
2119 if xc != 1 and len(str(abs(yc)*xc_bits)) <= -ye:
3126 # assert len(str(abs(coeff)))-p >= 1
3127 if coeff % (5*10**(len(str(abs(coeff)))-p-1)):
3130 ans = _dec_from_triple(int(coeff<0), str(abs(coeff)), -places)
3207 # assert len(str(abs(coeff)))-p >= 1
3208 if coeff % (5*10**(len(str(abs(coeff)))-p-1)):
3211 ans = _dec_from_triple(int(coeff<0), str(abs(coeff)), -places)
3957 def abs(self, a):
3964 >>> ExtendedContext.abs(Decimal('2.1'))
3966 >>> ExtendedContext.abs(Decimal('-100'))
3968 >>> ExtendedContext.abs(Decimal('101.5'))
3970 >>> ExtendedContext.abs(Decimal('-101.5'))
3972 >>> ExtendedContext.abs(-1)
5511 str_n = str(abs(n))
5579 while (R <= L and long(abs(y)) << L-R >= M or
5580 R > L and abs(y) >> R-L >= M):
5659 extra = len(str(abs(f)))-1
5798 b = len(str(abs(yc))) + ye