Invert all its digits. The self must be logical number.
(self, context=None)
| 3363 | return _dec_from_triple(0, result.lstrip('0') or '0', 0) |
| 3364 | |
| 3365 | def logical_invert(self, context=None): |
| 3366 | """Invert all its digits. |
| 3367 | |
| 3368 | The self must be logical number. |
| 3369 | """ |
| 3370 | if context is None: |
| 3371 | context = getcontext() |
| 3372 | return self.logical_xor(_dec_from_triple(0,'1'*context.prec,0), |
| 3373 | context) |
| 3374 | |
| 3375 | def logical_or(self, other, context=None): |
| 3376 | """Applies an 'or' operation between self and other's digits. |