def _isinteger(self):
        """Returns whether self is an integer"""
        if self._is_special:
            return False
        if self._exp >= 0:
            return True
        rest = self._int[self._exp:]
        return rest == '0'*len(rest)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/decimal.py/Decimal._isinteger/original