Example #1
0
// Divide returns a/b.
//
func (context *Context) Divide(a Quad, b Quad) (r Quad) {
	var result C.Ret_decQuad_t
	assert_sane(context)

	result = C.mdq_divide(a.val, b.val, context.set)

	context.set = result.set
	return Quad{val: result.val}
}
Example #2
0
// Div returns a/b.
//
func (a Quad) Div(b Quad) Quad {

	return Quad(C.mdq_divide(C.struct_Quad(a), C.struct_Quad(b)))
}