Lines Matching refs: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()
1672 # equal to max(self.adjusted()-context.prec+1, Etiny)
1675 # overflow: exp_min > Etop iff self.adjusted() > Emax
1903 if modulo.adjusted() >= context.prec:
2276 # compute adjusted exponent of self
2277 self_adj = self.adjusted()
2297 bound = self._log10_exp_bound() + other.adjusted()
2464 self_adjusted = self.adjusted()
2473 if ans.adjusted() > context.Emax:
2481 if ans and ans.adjusted() < context.Emin:
2529 # too many digits; round and lose data. If self.adjusted() <
2556 ans = self._rescale(self.adjusted()+1-places, rounding)
2557 # it can happen that the rescale alters the adjusted exponent;
2561 if ans.adjusted() != self.adjusted():
2562 ans = ans._rescale(ans.adjusted()+1-places, rounding)
2803 def adjusted(self):
2804 """Return the adjusted exponent of self"""
2960 adj = self.adjusted()
2963 # of adjusted exponents---for example, -29 <= adj <= 10 for
3037 return context.Emin <= self.adjusted()
3057 return self.adjusted() < context.Emin
3064 """Compute a lower bound for the adjusted exponent of self.ln().
3139 """Compute a lower bound for the adjusted exponent of self.log10().
3243 # otherwise, simply return the adjusted exponent of self, as a
3246 ans = Decimal(self.adjusted())
3474 elif ans.adjusted() < context.Emin:
5458 # Let exp = min(tmp.exp - 1, tmp.adjusted() - precision - 1).
5763 # compute log(10) with extra precision = adjusted exponent of c*10**e