Returns a copy with the sign inverted.
(self)
| 2986 | return _dec_from_triple(0, self._int, self._exp, self._is_special) |
| 2987 | |
| 2988 | def copy_negate(self): |
| 2989 | """Returns a copy with the sign inverted.""" |
| 2990 | if self._sign: |
| 2991 | return _dec_from_triple(0, self._int, self._exp, self._is_special) |
| 2992 | else: |
| 2993 | return _dec_from_triple(1, self._int, self._exp, self._is_special) |
| 2994 | |
| 2995 | def copy_sign(self, other, context=None): |
| 2996 | """Returns self with the sign of other.""" |