Return the adjusted exponent of self
(self)
| 2915 | return self._int[-1+self._exp] in '02468' |
| 2916 | |
| 2917 | def adjusted(self): |
| 2918 | """Return the adjusted exponent of self""" |
| 2919 | try: |
| 2920 | return self._exp + len(self._int) - 1 |
| 2921 | # If NaN or Infinity, self._exp is string |
| 2922 | except TypeError: |
| 2923 | return 0 |
| 2924 | |
| 2925 | def canonical(self): |
| 2926 | """Returns the same Decimal object. |
no outgoing calls
no test coverage detected