def __int__(self): a, b = self._mpi_ if a == b: return int(libmp.to_int(a)) raise ValueError
def __long__(s): return long(to_int(s._mpf_))
def __int__(s): return int(to_int(s._mpf_))
def __long__(s): return long(to_int(s._mpf_)) def __float__(s): return to_float(s._mpf_)
def __int__(s): return int(to_int(s._mpf_)) def __long__(s): return long(to_int(s._mpf_))