List Info

Thread: Float assignment and conversion to float




Float assignment and conversion to float
user name
2006-03-07 18:14:24
(in case of double post, sorry, issue with mailer)

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.

_______________________________________________
gmp-discuss mailing list
gmp-discussswox.com
http://s
wox.com/mailman/listinfo/gmp-discuss
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )