Lines Matching refs:_int
220 ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True)
558 self._int = str(int(intpart+fracpart))
565 self._int = str(int(diag or '0')).lstrip('0')
572 self._int = '0'
584 self._int = str(abs(value))
592 self._int = value._int
599 self._int = str(value.int)
618 self._int = '0'
635 self._int = ''.join(map(str, digits))
640 self._int = ''.join(map(str, digits or [0]))
653 self._int = value._int
797 return self._is_special or self._int != '0'
833 self_padded = self._int + '0'*(self._exp - other._exp)
834 other_padded = other._int + '0'*(other._exp - self._exp)
983 self._exp+len(self._int),
984 self._int.rstrip('0')))
991 return DecimalTuple(self._sign, tuple(map(int, self._int)), self._exp)
1009 return sign + 'NaN' + self._int
1011 return sign + 'sNaN' + self._int
1014 leftdigits = self._exp + len(self._int)
1025 elif self._int == '0':
1034 fracpart = '.' + '0'*(-dotplace) + self._int
1035 elif dotplace >= len(self._int):
1036 intpart = self._int+'0'*(dotplace-len(self._int))
1039 intpart = self._int[:dotplace]
1040 fracpart = '.' + self._int[dotplace:]
1273 if self._int == '1':
1274 ans = _dec_from_triple(resultsign, other._int, resultexp)
1277 if other._int == '1':
1278 ans = _dec_from_triple(resultsign, self._int, resultexp)
1328 shift = len(other._int) - len(self._int) + context.prec + 1
1599 return s*int(self._int)*10**self._exp
1601 return s*int(self._int[:self._exp] or '0')
1628 payload = self._int
1671 exp_min = len(self._int) + self._exp - context.prec
1685 digits = len(self._int) + self._exp - exp_min
1691 coeff = self._int[:digits] or '0'
1724 self_padded = self._int + '0'*(self._exp - Etop)
1742 if _all_zeros(self._int, prec):
1753 if self._int[prec] in '56789':
1755 elif _all_zeros(self._int, prec):
1762 if _exact_half(self._int, prec):
1769 if _exact_half(self._int, prec) and \
1770 (prec == 0 or self._int[prec-1] in '02468'):
1791 if prec and self._int[prec-1] not in '05':
1845 str(int(self._int) * int(other._int)),
2313 ans = _dec_from_triple(1, ans._int, ans._exp)
2353 if len(ans._int) <= context.prec:
2354 expdiff = context.prec + 1 - len(ans._int)
2355 ans = _dec_from_triple(ans._sign, ans._int+'0'*expdiff,
2413 end = len(dup._int)
2415 while dup._int[end-1] == '0' and exp < exp_max:
2418 return _dec_from_triple(dup._sign, dup._int[:end], exp)
2474 if len(ans._int) > context.prec:
2525 self._int + '0'*(self._exp - exp), exp)
2529 digits = len(self._int) + self._exp - exp
2535 coeff = self._int[:digits] or '0'
2662 l = (len(self._int) >> 1) + 1
2665 l = len(self._int)+1 >> 1
2792 rest = self._int[self._exp:]
2799 return self._int[-1+self._exp] in '02468'
2804 return self._exp + len(self._int) - 1
2851 self_key = len(self._int), self._int
2852 other_key = len(other._int), other._int
2915 return _dec_from_triple(0, self._int, self._exp, self._is_special)
2920 return _dec_from_triple(0, self._int, self._exp, self._is_special)
2922 return _dec_from_triple(1, self._int, self._exp, self._is_special)
2927 return _dec_from_triple(other._sign, self._int,
3059 return not self._is_special and self._int == '0'
3068 adj = self._exp + len(self._int) - 1
3148 adj = self._exp + len(self._int) - 1
3191 if self._int[0] == '1' and self._int[1:] == '0'*(len(self._int) - 1):
3193 ans = Decimal(self._exp + len(self._int) - 1)
3256 for dig in self._int:
3285 (opa, opb) = self._fill_logical(context, self._int, other._int)
3309 (opa, opb) = self._fill_logical(context, self._int, other._int)
3326 (opa, opb) = self._fill_logical(context, self._int, other._int)
3551 rotdig = self._int
3584 d = _dec_from_triple(self._sign, self._int, self._exp + int(other))
3609 rotdig = self._int
3676 self = _dec_from_triple(self._sign, self._int, self._exp+2)
3686 elif spec['type'] in 'gG' and len(self._int) > precision:
3694 leftdigits = self._exp + len(self._int)
3711 fracpart = '0'*(-dotplace) + self._int
3712 elif dotplace > len(self._int):
3713 intpart = self._int + '0'*(dotplace-len(self._int))
3716 intpart = self._int[:dotplace] or '0'
3717 fracpart = self._int[dotplace:]
3734 self._int = coefficient
3934 if d._isnan() and len(d._int) > self.prec - self._clamp:
5451 self.int = int(value._int)