Beispiel #1
0
// SetInt sets f = x and returns f.
func (f *Float) SetInt64(x int64) *Float {
	f.doinit()
	C.mpf_set_si(&f.i[0], C.long(x))
	return f
}
Beispiel #2
0
// SetInt sets f = x and returns f.
func (f *Float) SetSint(x int) *Float {
	C.mpf_set_si(&f.i[0], C.long(x))
	return f
}