my first code using GMP!
pranavshriram at gmail.com
Wed May 30 20:53:40 CEST 2012
Thanks Marco, fixed it (and few other things)!
Earlier I tried to use gmp_printf, but it was giving seg fault. I think
gmp_printf ("fixed point mpf %.*Ff with %d digits\n", n, f, n);
is not working properly
I figured it might be
gmp_printf ("fixed point mpf %.10Ff with %d digits \n", f, n);
But this gives some garbage number as number of digits.
Anyway, just using %.*Ff is equivalent to what I had written code for.
On Wed, May 30, 2012 at 11:39 PM, <bodrato at mail.dm.unipi.it> wrote:
The best way to get something done is to begin. ~Author Unknown
More information about the gmp-discuss