GMP, C++ formatted output

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


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

> "Nameless Apprentice" <cucuforcoffee at gmail.com> 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.

Décio
-------------- 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 : http://gmplib.org/list-archives/gmp-discuss/attachments/20060720/311fb36f/attachment.bin 


More information about the gmp-discuss mailing list