Gmp_printf and friends.

Torbjorn Granlund tg at
Tue Oct 7 14:34:23 CEST 2008

"Jonathan Blanchard" <BlanchardJ at> writes:

  Is it possible to format an mpz_t operand in scientific format?.
  The others options works but if I try something like "%Ze" it just return Ze.
GMP's gmp_printf does not support printing of mpz_t using floating
point format.

Perhaps you could store the mpz_t into an mpf_t, using GMP's assignment
functions for that, and then print your number?


More information about the gmp-discuss mailing list