List Info

Thread: C++ output precision




C++ output precision
country flaguser name
Belgium
2007-03-03 06:13:41
Hi,

I'm using gmp-2.4.1 with all official patches.
I'm using the C++ interface which seems to work just fine.

Still, I haven't found out how to output a result with a
given
number of digits.

I've tried

cout << setprecision(100) << mygmpresult
<< endl;

but it outputs always the same number of digits (21).
I've called mpf_set_default_prec(1000) before,
so there must be more digits internally.

What am I missing?

Many thanks for a hint,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
_______________________________________________
gmp-discuss mailing list
gmp-discussswox.com
http://s
wox.com/mailman/listinfo/gmp-discuss

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )