mpq_get_d_nearest

Anders Andersson pipatron at gmail.com
Wed Aug 28 15:11:53 CEST 2024


On Wed, Aug 28, 2024 at 1:41 PM Marc Nieper-Wißkirchen
<marc.nieper+gnu at gmail.com> wrote:
>
> Hi,
>
> There was a discussion on the mailing list roughly ten years ago about
> adding a function mpq_get_d_nearest, which would be more useful than
> mpq_get_d in many use cases:
>
> https://gmplib.org/list-archives/gmp-devel/2013-April/003223.html
>
> What happened to this suggestion?  Or did it come to nothing?


Thanks for showing me this discussion, this is something that I've
always found weird when working with mpq_t. Now I always have to
involve mpfr_set_q, which is an annoying extra step.


More information about the gmp-discuss mailing list