my first code using GMP!

Pranav Jawale 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
this line

gmp_printf ("fixed point mpf %.*Ff with %d digits\n", n, f, n);


on http://www.gnu.org/software/gmp/manual/html_node/Formatted-Output-Strings.html
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.

Regards,
Pranav

On Wed, May 30, 2012 at 11:39 PM, <bodrato at mail.dm.unipi.it> wrote:

> gmp_printf




-- 
*
*
The best way to get something done is to begin.  ~Author Unknown


More information about the gmp-discuss mailing list