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

	result = C.mdq_minus(a.val, context.set)

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

	return Quad(C.mdq_minus(C.struct_Quad(a)))
}