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