Golang mpq_sub - 2 examples found. These are the top rated real world Golang examples of C.mpq_sub extracted from open source projects. You can rate examples to help us improve the quality of examples.
// Sub sets z to the difference x-y and returns z.
func (z *Rat) Sub(x, y *Rat) *Rat {
x.doinit()
y.doinit()
z.doinit()
C.mpq_sub(&z.i[0], &x.i[0], &y.i[0])
return z
}