Converting mpz_t to mpf_t

Jim White mathimagics at
Wed Jun 28 21:54:15 CEST 2006

The functions for conversion to/from mpz_t and mpf_t
are mpf_set_z and mpz_set_f.

They are recorded under "Assignment Functions", in the
"Integer Functions" and "Floating-point Functions"
sections of the manual.

Perhaps they might be listed (also) under "Conversion
functions" in future manual releases?  When I first
went looking for type-conversion functions that's
where I looked.  ;-)

Jim White
ANU, Canberra

More information about the gmp-discuss mailing list