示例#1
0
 def quo(self, a, b):
     """Quotient of `a` and `b`, implies `__div__`. """
     return GMPYRational(gmpy_qdiv(GMPYRational(a), GMPYRational(b)))
示例#2
0
 def div(self, a, b):
     """Division of `a` and `b`, implies `__div__`. """
     return GMPYRational(gmpy_qdiv(a, b)), self.zero
示例#3
0
 def exquo(self, a, b):
     """Exact quotient of `a` and `b`, implies `__div__`.  """
     return GMPYRational(gmpy_qdiv(a, b))