Home | History | Annotate | Download | only in Lib

Lines Matching defs:adjusted

315     operation is subnormal (that is, its adjusted exponent is less than

325 This occurs and signals overflow if the adjusted exponent of a result
364 adjusted exponent of the result would be smaller (more negative) than
831 self_adjusted = self.adjusted()
832 other_adjusted = other.adjusted()
981 # its adjusted exponent, and its coefficient with trailing
1364 expdiff = self.adjusted() - other.adjusted()
1511 expdiff = self.adjusted() - other.adjusted()
1666 # equal to max(self.adjusted()-context.prec+1, Etiny)
1669 # overflow: exp_min > Etop iff self.adjusted() > Emax
1897 if modulo.adjusted() >= context.prec:
2248 # compute adjusted exponent of self
2249 self_adj = self.adjusted()
2269 bound = self._log10_exp_bound() + other.adjusted()
2436 self_adjusted = self.adjusted()
2445 if ans.adjusted() > context.Emax:
2453 if ans and ans.adjusted() < context.Emin:
2501 # too many digits; round and lose data. If self.adjusted() <
2528 ans = self._rescale(self.adjusted()+1-places, rounding)
2529 # it can happen that the rescale alters the adjusted exponent;
2533 if ans.adjusted() != self.adjusted():
2534 ans = ans._rescale(ans.adjusted()+1-places, rounding)
2775 def adjusted(self):
2776 """Return the adjusted exponent of self"""
2932 adj = self.adjusted()
2935 # of adjusted exponents---for example, -29 <= adj <= 10 for
3009 return context.Emin <= self.adjusted()
3029 return self.adjusted() < context.Emin
3036 """Compute a lower bound for the adjusted exponent of self.ln().
3111 """Compute a lower bound for the adjusted exponent of self.log10().
3215 # otherwise, simply return the adjusted exponent of self, as a
3218 ans = Decimal(self.adjusted())
3446 elif ans.adjusted() < context.Emin:
5430 # Let exp = min(tmp.exp - 1, tmp.adjusted() - precision - 1).
5714 # compute log(10) with extra precision = adjusted exponent of c*10**e