gmp_printf() and mpf_set_d() question
anita maltese
atina at techie.com
Tue Nov 4 06:25:55 UTC 2014
Hi,
> I do not understand the behaviour of gmp_printf() and mpf_set_d().
> __mpf_struct mpfs[4];
I don't think direct use of __mpf_struct is documented, nor supported.
> gmp_printf("%1.10e\n", *mpfptr);
You ask gmp_printf to print a struct as a float... Maybe you mean
gmp_printf("%1.10Fe\n", mpfptr);
with the "F" for mpf and without the "*".
Best regards,
Anita
More information about the gmp-discuss
mailing list