Lines Matching refs:_exp
567 self._exp = exp - len(fracpart)
575 self._exp = 'N'
577 self._exp = 'n'
581 self._exp = 'F'
591 self._exp = 0
598 self._exp = value._exp
608 self._exp = int(value.exp)
627 self._exp = value[2]
644 self._exp = value[2]
649 self._exp = value[2]
664 self._exp = value._exp
725 exp = self._exp
739 if self._exp == 'F':
851 self_padded = self._int + '0'*(self._exp - other._exp)
852 other_padded = other._int + '0'*(other._exp - self._exp)
961 if self._exp >= 0:
962 exp_hash = pow(10, self._exp, _PyHASH_MODULUS)
964 exp_hash = pow(_PyHASH_10INV, -self._exp, _PyHASH_MODULUS)
974 return DecimalTuple(self._sign, tuple(map(int, self._int)), self._exp)
1002 if self._exp >= 0:
1004 n, d = n * 10**self._exp, 1
1007 d5 = -self._exp
1014 d2 = -self._exp
1039 if self._exp == 'F':
1041 elif self._exp == 'n':
1047 leftdigits = self._exp + len(self._int)
1052 if self._exp <= 0 and leftdigits > -6:
1182 exp = min(self._exp, other._exp)
1196 exp = max(exp, other._exp - context.prec-1)
1201 exp = max(exp, self._exp - context.prec-1)
1296 resultexp = self._exp + other._exp
1357 exp = self._exp - other._exp
1362 exp = self._exp - other._exp - shift
1375 ideal_exp = self._exp - other._exp
1391 ideal_exp = self._exp
1393 ideal_exp = min(self._exp, other._exp)
1533 ideal_exponent = min(self._exp, other._exp)
1628 if self._exp >= 0:
1629 return s*int(self._int)*10**self._exp
1631 return s*int(self._int[:self._exp] or '0')
1658 return _dec_from_triple(self._sign, payload, self._exp, True)
1685 new_exp = min(max(self._exp, Etiny), exp_max)
1686 if new_exp != self._exp:
1694 exp_min = len(self._int) + self._exp - context.prec
1707 if self._exp < exp_min:
1708 digits = len(self._int) + self._exp - exp_min
1745 if context.clamp == 1 and self._exp > Etop:
1747 self_padded = self._int + '0'*(self._exp - Etop)
1941 if self._exp == 'N':
1943 if other._exp == 'N':
1945 if self._exp == 'n':
1947 elif other._exp == 'n':
1949 elif self._exp == 'F':
1954 elif other._exp == 'F':
1962 self._exp + other._exp)
2136 ideal_exponent = self._exp*int(other)
2282 ideal_exponent = self._exp*int(other)
2379 exp = self._exp * multiplier
2429 ans = _dec_from_triple(1, ans._int, ans._exp)
2472 ans._exp-expdiff)
2530 exp = dup._exp
2560 if not (context.Etiny() <= exp._exp <= context.Emax):
2565 ans = _dec_from_triple(self._sign, '0', exp._exp)
2572 if self_adjusted - exp._exp + 1 > context.prec:
2576 ans = self._rescale(exp._exp, rounding)
2587 if ans._exp > self._exp:
2610 return self._exp == other._exp
2628 if self._exp >= exp:
2631 self._int + '0'*(self._exp - exp), exp)
2635 digits = len(self._int) + self._exp - exp
2684 if self._exp >= 0:
2709 if self._exp >= 0:
2732 ans = _dec_from_triple(self._sign, '0', self._exp // 2)
2896 if self._exp >= 0:
2898 rest = self._int[self._exp:]
2903 if not self or self._exp > 0:
2905 return self._int[-1+self._exp] in '02468'
2910 return self._exp + len(self._int) - 1
2995 if self._exp < other._exp:
3000 if self._exp > other._exp:
3021 return _dec_from_triple(0, self._int, self._exp, self._is_special)
3026 return _dec_from_triple(0, self._int, self._exp, self._is_special)
3028 return _dec_from_triple(1, self._int, self._exp, self._is_special)
3034 self._exp, self._is_special)
3129 return self._exp == 'F'
3133 return self._exp in ('n', 'N')
3145 return self._exp == 'n'
3153 return self._exp == 'N'
3174 adj = self._exp + len(self._int) - 1
3254 adj = self._exp + len(self._int) - 1
3299 ans = Decimal(self._exp + len(self._int) - 1)
3360 if self._sign != 0 or self._exp != 0:
3647 if other._exp != 0:
3667 rotated.lstrip('0') or '0', self._exp)
3680 if other._exp != 0:
3690 d = _dec_from_triple(self._sign, self._int, self._exp + int(other))
3705 if other._exp != 0:
3730 shifted.lstrip('0') or '0', self._exp)
3782 self = _dec_from_triple(self._sign, self._int, self._exp+2)
3796 if not self and self._exp > 0 and spec['type'] in 'fF%':
3800 leftdigits = self._exp + len(self._int)
3809 if self._exp <= 0 and leftdigits > -6:
3841 self._exp = exponent
5628 self.exp = value._exp
6050 self._exp)