Float assignment and conversion to float

Gilles Rayrat gilles.rayrat at continuent.com
Tue Mar 7 19:09:01 CET 2006


Hi all,
First of all I want to say that this lib is just great. Good doc, good 
api, "bravo" !

But I have two questions about mpfs: I have a mantissa 'm' and a scale 
's', both mpz.  and I want to create a mpf_t 'f' from these like 
f=m/pow(10,s)
Is there a simple way to do that ?
2nd question, from this mpf_t, I'd like to have it converted to a float 
C type. I've seen the get_d() function, but nothing for floats. Any idea
Thanks a lots.
Gilles.


More information about the gmp-discuss mailing list