GMP, C++ formatted output

Décio Luiz Gazzoni Filho decio at
Thu Jul 20 17:20:33 CEST 2006

On Jul 18, 2006, at 8:39 AM, Torbjorn Granlund wrote:

> "Nameless Apprentice" <cucuforcoffee at> writes:
>   For instance, 3 characters for the exponents in base 10, and  
> always the same
>   number of characters for expressing the mantissa and one for  
> sign. Do any of
>   you know how to accomplish this or if there is already a function  
> or utility
>   for doing so?
> I suppose you need to write a simple interface to mpf_get_str.

Correct me if I'm wrong, but gmp_printf() with the right flags should  
do the job as well.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : 

More information about the gmp-discuss mailing list