[MPFR] Fwd: MPFR to MPF conversion

Paul Zimmermann Paul.Zimmermann at loria.fr
Sun Sep 4 22:02:37 CEST 2005


       Jim,

   I note that MPFR provides a method to convert an mpf_t to an mpfr_t
   (mpfr_set_f).

   But I can't find an inverse method, and since mpf_get_str seems to
   return garbage when I pass it an mpfr_t, that suggests the internal
   format isn't compatible.

the cvs version of mpfr contains a mpfr_get_f function, that should do
what you want.

Regards,
Paul Zimmermann


More information about the gmp-discuss mailing list