Example #1
0
// Abs sets z to the absolute value of x and returns z.
func (f *Float) Abs(x *Float) *Float {
	x.doinit()
	f.doinit()
	C.mpf_abs(&f.i[0], &x.i[0])
	return f
}
Example #2
0
// Abs sets z to the absolute value of x and returns z.
func (f *Float) Abs(x *Float) *Float {
	C.mpf_abs(&f.i[0], &x.i[0])
	return f
}