Rounding error

Marc Glisse marc.glisse at inria.fr
Wed Aug 25 08:43:43 UTC 2021


On Wed, 25 Aug 2021, Frank Heckenbach wrote:

> mpf_get_str seems to round incorrectly sometimes.
> In this test program, the digits around 809 are "...244594553...",
> so it should round to "...244595", but it outputs "...244594".

Hello,

if you care about correct rounding, I would recommend you use MPFR 
instead.

-- 
Marc Glisse


More information about the gmp-bugs mailing list