'Returns whether self is an integer'

def _isinteger(self):

    if self._is_special:
        return False
    if (self._exp >= 0):
        return True
    rest = self._int[self._exp:]
    return (rest == ('0' * len(rest)))
