'Returns whether the number is not actually one.
0 if a number
1 if NaN
2 if sNaN'

def _isnan(self):

    if self._is_special:
        exp = self._exp
        if (exp == 'n'):
            return 1
        if (exp == 'N'):
            return 2
    return 0
