Lines Matching refs:_sign

248             ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True)
554 self._sign = 1
556 self._sign = 0
584 self._sign = 0
586 self._sign = 1
595 self._sign = value._sign
602 self._sign = value.sign
619 self._sign = value[0]
661 self._sign = value._sign
736 if self._sign:
834 return -((-1)**other._sign)
836 return (-1)**self._sign
839 if other._sign < self._sign:
841 if self._sign < other._sign:
852 return -(-1)**self._sign
854 return (-1)**self._sign
856 return (-1)**self._sign
858 return -((-1)**self._sign)
952 if self._sign:
970 return DecimalTuple(self._sign, tuple(map(int, self._int)), self._exp)
1018 if self._sign:
1033 sign = ['', '-'][self._sign]
1146 if self._sign:
1172 if self._sign != other._sign and other._isinfinity():
1180 if context.rounding == ROUND_FLOOR and self._sign != other._sign:
1185 sign = min(self._sign, other._sign)
1275 resultsign = self._sign ^ other._sign
1329 sign = self._sign ^ other._sign
1385 sign = self._sign ^ other._sign
1405 _dec_from_triple(self._sign, str(r), ideal_exp))
1434 sign = self._sign ^ other._sign
1531 ans = _dec_from_triple(self._sign, '0', ideal_exponent)
1563 sign = self._sign
1588 return _SignedInfinity[self._sign ^ other._sign]
1593 self._sign ^ other._sign)
1611 s = "-nan" if self._sign else "nan"
1623 s = (-1)**self._sign
1654 return _dec_from_triple(self._sign, payload, self._exp, True)
1684 return _dec_from_triple(self._sign, '0', new_exp)
1693 ans = context._raise_error(Overflow, 'above Emax', self._sign)
1706 self = _dec_from_triple(self._sign, '1', exp_min-1)
1719 ans = context._raise_error(Overflow, 'above Emax', self._sign)
1721 ans = _dec_from_triple(self._sign, coeff, exp_min)
1744 return _dec_from_triple(self._sign, self_padded, Etop)
1796 if self._sign:
1803 if not self._sign:
1949 product = _SignedInfinity[self._sign ^ other._sign]
1954 product = _SignedInfinity[self._sign ^ other._sign]
1956 product = _dec_from_triple(self._sign ^ other._sign,
2031 sign = self._sign
2131 if other._isinteger() and other._sign == 0:
2277 if other._isinteger() and other._sign == 0:
2332 if self._sign == 1:
2347 if other._sign == 0:
2354 if other._sign == 0:
2368 if other._sign == 1:
2392 if (other._sign == 0) == (self_adj < 0):
2408 if (self_adj >= 0) == (other._sign == 0):
2467 ans = _dec_from_triple(ans._sign, ans._int+'0'*expdiff,
2490 context._raise_error(Overflow, 'above Emax', ans._sign)
2523 return _dec_from_triple(dup._sign, '0', 0)
2530 return _dec_from_triple(dup._sign, dup._int[:end], exp)
2561 ans = _dec_from_triple(self._sign, '0', exp._exp)
2622 return _dec_from_triple(self._sign, '0', exp)
2626 return _dec_from_triple(self._sign,
2633 self = _dec_from_triple(self._sign, '1', exp-1)
2640 return _dec_from_triple(self._sign, coeff, exp)
2683 return _dec_from_triple(self._sign, '0', 0)
2723 if self._isinfinity() and self._sign == 0:
2728 ans = _dec_from_triple(self._sign, '0', self._exp // 2)
2731 if self._sign == 1:
2941 if self._sign and not other._sign:
2943 if not self._sign and other._sign:
2945 sign = self._sign
3021 if self._sign:
3029 return _dec_from_triple(other._sign, self._int,
3067 if self._sign == 0 and adj > len(str((context.Emax+1)*3)):
3070 elif self._sign == 1 and adj > len(str((-context.Etiny()+1)*3)):
3073 elif self._sign == 0 and adj < -p:
3076 elif self._sign == 1 and adj < -p-1:
3145 return self._sign == 1
3212 if self._sign == 1:
3288 if self._sign == 1:
3356 if self._sign != 0 or self._exp != 0:
3571 ans._sign)
3611 if self._sign:
3618 if self._sign:
3623 if self._sign:
3662 return _dec_from_triple(self._sign,
3686 d = _dec_from_triple(self._sign, self._int, self._exp + int(other))
3725 return _dec_from_triple(self._sign,
3766 sign = _format_sign(self._sign, spec)
3778 self = _dec_from_triple(self._sign, self._int, self._exp+2)
3824 return _format_number(self._sign, intpart, fracpart, exp, spec)
3835 self._sign = sign
5622 self.sign = value._sign
6046 self = _dec_from_triple(self._sign,