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