mpz_ndiv_qr wanted

Vincent Lefevre vincent at vinc17.net
Thu Sep 24 08:17:30 UTC 2015


On 2015-09-24 07:30:47 +0200, Marco Bodrato wrote:
> Ciao Paul,
> 
> We (my fault) answered to one another privately...
> 
> Il Mar, 22 Settembre 2015 8:48 am, paul zimmermann ha scritto:
> >> Date: Mon, 21 Sep 2015 23:09:35 +0200
> >> From: "Marco Bodrato" <bodrato at mail.dm.unipi.it>
> >> Il Ven, 18 Settembre 2015 8:04 pm, paul zimmermann ha scritto:
> >> > an integer quotient and remainder with rounding to nearest, I believe
> >> > this could be a nice addition to GMP, and useful to other users too.
> >>
> >> Do you think there is something that the library can do and the users
> >> can not?
> >
> > no: I believe several users might find such a function a useful addition.
> 
> Let's ask...

I don't know whether it would be useful, but note that this would
allow one to have the multiple-precision equivalent to the IEEE-754 /
ISO C function remainder(). This applies to floating-point values,
but one can use it on values that can be integers.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the gmp-devel mailing list