Lines Matching refs:_int
252 ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True)
566 self._int = str(int(intpart+fracpart))
573 self._int = str(int(diag or '0')).lstrip('0')
580 self._int = '0'
592 self._int = str(abs(value))
600 self._int = value._int
607 self._int = str(value.int)
626 self._int = '0'
643 self._int = ''.join(map(str, digits))
648 self._int = ''.join(map(str, digits or [0]))
666 self._int = value._int
815 return self._is_special or self._int != '0'
851 self_padded = self._int + '0'*(self._exp - other._exp)
852 other_padded = other._int + '0'*(other._exp - self._exp)
965 hash_ = int(self._int) * exp_hash % _PyHASH_MODULUS
974 return DecimalTuple(self._sign, tuple(map(int, self._int)), self._exp)
1001 n = int(self._int)
1042 return sign + 'NaN' + self._int
1044 return sign + 'sNaN' + self._int
1047 leftdigits = self._exp + len(self._int)
1058 elif self._int == '0':
1067 fracpart = '.' + '0'*(-dotplace) + self._int
1068 elif dotplace >= len(self._int):
1069 intpart = self._int+'0'*(dotplace-len(self._int))
1072 intpart = self._int[:dotplace]
1073 fracpart = '.' + self._int[dotplace:]
1306 if self._int == '1':
1307 ans = _dec_from_triple(resultsign, other._int, resultexp)
1310 if other._int == '1':
1311 ans = _dec_from_triple(resultsign, self._int, resultexp)
1361 shift = len(other._int) - len(self._int) + context.prec + 1
1629 return s*int(self._int)*10**self._exp
1631 return s*int(self._int[:self._exp] or '0')
1651 payload = self._int
1694 exp_min = len(self._int) + self._exp - context.prec
1708 digits = len(self._int) + self._exp - exp_min
1714 coeff = self._int[:digits] or '0'
1747 self_padded = self._int + '0'*(self._exp - Etop)
1765 if _all_zeros(self._int, prec):
1776 if self._int[prec] in '56789':
1778 elif _all_zeros(self._int, prec):
1785 if _exact_half(self._int, prec):
1792 if _exact_half(self._int, prec) and \
1793 (prec == 0 or self._int[prec-1] in '02468'):
1814 if prec and self._int[prec-1] not in '05':
1961 str(int(self._int) * int(other._int)),
2429 ans = _dec_from_triple(1, ans._int, ans._exp)
2469 if len(ans._int) <= context.prec:
2470 expdiff = context.prec + 1 - len(ans._int)
2471 ans = _dec_from_triple(ans._sign, ans._int+'0'*expdiff,
2529 end = len(dup._int)
2531 while dup._int[end-1] == '0' and exp < exp_max:
2534 return _dec_from_triple(dup._sign, dup._int[:end], exp)
2580 if len(ans._int) > context.prec:
2631 self._int + '0'*(self._exp - exp), exp)
2635 digits = len(self._int) + self._exp - exp
2641 coeff = self._int[:digits] or '0'
2768 l = (len(self._int) >> 1) + 1
2771 l = len(self._int)+1 >> 1
2898 rest = self._int[self._exp:]
2905 return self._int[-1+self._exp] in '02468'
2910 return self._exp + len(self._int) - 1
2957 self_key = len(self._int), self._int
2958 other_key = len(other._int), other._int
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)
3033 return _dec_from_triple(other._sign, self._int,
3165 return not self._is_special and self._int == '0'
3174 adj = self._exp + len(self._int) - 1
3254 adj = self._exp + len(self._int) - 1
3297 if self._int[0] == '1' and self._int[1:] == '0'*(len(self._int) - 1):
3299 ans = Decimal(self._exp + len(self._int) - 1)
3362 for dig in self._int:
3391 (opa, opb) = self._fill_logical(context, self._int, other._int)
3415 (opa, opb) = self._fill_logical(context, self._int, other._int)
3432 (opa, opb) = self._fill_logical(context, self._int, other._int)
3657 rotdig = self._int
3690 d = _dec_from_triple(self._sign, self._int, self._exp + int(other))
3715 rotdig = self._int
3782 self = _dec_from_triple(self._sign, self._int, self._exp+2)
3792 elif spec['type'] in 'gG' and len(self._int) > precision:
3800 leftdigits = self._exp + len(self._int)
3817 fracpart = '0'*(-dotplace) + self._int
3818 elif dotplace > len(self._int):
3819 intpart = self._int + '0'*(dotplace-len(self._int))
3822 intpart = self._int[:dotplace] or '0'
3823 fracpart = self._int[dotplace:]
3840 self._int = coefficient
4106 if d._isnan() and len(d._int) > self.prec - self.clamp:
5627 self.int = int(value._int)
6049 str(int(self._int) * other.denominator),