C++ mpf_class Precision

Torbjorn Granlund tg at gmplib.org
Tue Jun 2 11:18:28 CEST 2009

Henry <henryxxll at gmail.com> writes:

  What if I base the assignment of an mpf_class variable on another mpf_class
  variable, like so:
  *mpf_class a, b;
  Would it still round it incorrectly?
There is no incorrect rounding going on, the behaviour you saw follows
from the C++ language.  The semantics of mpf_class are documented in the
GMP manual.


More information about the gmp-discuss mailing list