Beispiel #1
0
// DivideInteger returns the integral part of a/b.
//
func (context *Context) DivideInteger(a Quad, b Quad) (r Quad) {
	var result C.Ret_decQuad_t
	assert_sane(context)

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

	context.set = result.set
	return Quad{val: result.val}
}
Beispiel #2
0
// DivInt returns the integral part of a/b.
//
func (a Quad) DivInt(b Quad) Quad {

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