Return the adjusted exponent of self
(self)
| 2870 | return self._int[-1+self._exp] in '02468' |
| 2871 | |
| 2872 | def adjusted(self): |
| 2873 | """Return the adjusted exponent of self""" |
| 2874 | try: |
| 2875 | return self._exp + len(self._int) - 1 |
| 2876 | # If NaN or Infinity, self._exp is string |
| 2877 | except TypeError: |
| 2878 | return 0 |
| 2879 | |
| 2880 | def canonical(self): |
| 2881 | """Returns the same Decimal object. |
no outgoing calls