Example #1
0
// SetFloat64 sets f = x and returns f.
func (f *Float) SetFloat64(x float64) *Float {
	f.doinit()
	C.mpf_set_d(&f.i[0], C.double(x))
	return f
}
Example #2
0
// SetDouble sets f = x and returns f.
func (f *Float) SetDouble(x float64) *Float {
	C.mpf_set_d(&f.i[0], C.double(x))
	return f
}