MPFR to MPF conversion

Jim White mathimagics at yahoo.co.uk
Sun Sep 4 18:38:40 CEST 2005


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.

It would be nice to be able to work in MPF mode, but be able to convert to and from MPFR to get access to its function library, for example.

Am I overlooking something obvious here?

Cheers

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20050904/f20b0035/attachment.html


More information about the gmp-discuss mailing list