// Abs returns the absolute value of a. // func (context *Context) Abs(a Quad) (r Quad) { var result C.Ret_decQuad_t assert_sane(context) result = C.mdq_abs(a.val, context.set) context.set = result.set return Quad{val: result.val} }
// Abs returns the absolute value of a. // func (a Quad) Abs() Quad { return Quad(C.mdq_abs(C.struct_Quad(a))) }