示例#1
0
 def __int__(self):
     a, b = self._mpi_
     if a == b:
         return int(libmp.to_int(a))
     raise ValueError
示例#2
0
 def __long__(s):
     return long(to_int(s._mpf_))
示例#3
0
 def __int__(s):
     return int(to_int(s._mpf_))
示例#4
0
 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 __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_))