Lines Matching refs:_sign

220             ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True)
550 self._sign = 1
552 self._sign = 0
580 self._sign = 0
582 self._sign = 1
591 self._sign = value._sign
598 self._sign = value.sign
615 self._sign = value[0]
652 self._sign = value._sign
722 if self._sign:
820 return -((-1)**other._sign)
822 return (-1)**self._sign
825 if other._sign < self._sign:
827 if self._sign < other._sign:
838 return -(-1)**self._sign
840 return (-1)**self._sign
842 return (-1)**self._sign
844 return -((-1)**self._sign)
956 if self._sign:
982 return hash((self._sign,
991 return DecimalTuple(self._sign, tuple(map(int, self._int)), self._exp)
1004 sign = ['', '-'][self._sign]
1117 if self._sign:
1143 if self._sign != other._sign and other._isinfinity():
1151 if context.rounding == ROUND_FLOOR and self._sign != other._sign:
1156 sign = min(self._sign, other._sign)
1246 resultsign = self._sign ^ other._sign
1300 sign = self._sign ^ other._sign
1356 sign = self._sign ^ other._sign
1376 _dec_from_triple(self._sign, str(r), ideal_exp))
1408 sign = self._sign ^ other._sign
1505 ans = _dec_from_triple(self._sign, '0', ideal_exponent)
1537 sign = self._sign
1562 return _SignedInfinity[self._sign ^ other._sign]
1567 self._sign ^ other._sign)
1585 s = "-nan" if self._sign else "nan"
1597 s = (-1)**self._sign
1635 return _dec_from_triple(self._sign, payload, self._exp, True)
1665 return _dec_from_triple(self._sign, '0', new_exp)
1674 ans = context._raise_error(Overflow, 'above Emax', self._sign)
1687 self = _dec_from_triple(self._sign, '1', exp_min-1)
1700 ans = context._raise_error(Overflow, 'above Emax', self._sign)
1702 ans = _dec_from_triple(self._sign, coeff, exp_min)
1725 return _dec_from_triple(self._sign, self_padded, Etop)
1777 if self._sign:
1784 if not self._sign:
1837 product = _SignedInfinity[self._sign ^ other._sign]
1842 product = _SignedInfinity[self._sign ^ other._sign]
1844 product = _dec_from_triple(self._sign ^ other._sign,
1919 sign = self._sign
2019 if other._isinteger() and other._sign == 0:
2165 if other._isinteger() and other._sign == 0:
2220 if self._sign == 1:
2235 if other._sign == 0:
2242 if other._sign == 0:
2256 if other._sign == 1:
2280 if (other._sign == 0) == (self_adj < 0):
2296 if (self_adj >= 0) == (other._sign == 0):
2355 ans = _dec_from_triple(ans._sign, ans._int+'0'*expdiff,
2378 context._raise_error(Overflow, 'above Emax', ans._sign)
2411 return _dec_from_triple(dup._sign, '0', 0)
2418 return _dec_from_triple(dup._sign, dup._int[:end], exp)
2459 ans = _dec_from_triple(self._sign, '0', exp._exp)
2520 return _dec_from_triple(self._sign, '0', exp)
2524 return _dec_from_triple(self._sign,
2531 self = _dec_from_triple(self._sign, '1', exp-1)
2538 return _dec_from_triple(self._sign, coeff, exp)
2581 return _dec_from_triple(self._sign, '0', 0)
2621 if self._isinfinity() and self._sign == 0:
2626 ans = _dec_from_triple(self._sign, '0', self._exp // 2)
2629 if self._sign == 1:
2839 if self._sign and not other._sign:
2841 if not self._sign and other._sign:
2843 sign = self._sign
2919 if self._sign:
2927 return _dec_from_triple(other._sign, self._int,
2965 if self._sign == 0 and adj > len(str((context.Emax+1)*3)):
2968 elif self._sign == 1 and adj > len(str((-context.Etiny()+1)*3)):
2971 elif self._sign == 0 and adj < -p:
2974 elif self._sign == 1 and adj < -p-1:
3043 return self._sign == 1
3110 if self._sign == 1:
3186 if self._sign == 1:
3254 if self._sign != 0 or self._exp != 0:
3469 ans._sign)
3509 if self._sign:
3516 if self._sign:
3521 if self._sign:
3560 return _dec_from_triple(self._sign,
3584 d = _dec_from_triple(self._sign, self._int, self._exp + int(other))
3623 return _dec_from_triple(self._sign,
3664 sign = _format_sign(self._sign, spec)
3676 self = _dec_from_triple(self._sign, self._int, self._exp+2)
3722 return _format_number(self._sign, intpart, fracpart, exp, spec)
3733 self._sign = sign
5450 self.sign = value._sign