Issue with documentation

Isaac Cohen idcohen2000 at gmail.com
Sun Sep 29 07:31:27 CEST 2024


Hi everyone,

This is not really a bug, but I didn't know where to send it. This page (
https://gmplib.org/manual/Integer-Division) states:

"For the ui variants the return value is the remainder, and in fact
returning the remainder is all the div_ui functions do."

This was confusing to me, so I decided to try it. Indeed the `mpz_tdiv_q_ui`
 function does actually compute the quotient, as its signature implies.
Would it be possible to remove the words "and in fact returning the
remainder is all the div_ui functions do."?

Thanks,
Isaac


More information about the gmp-bugs mailing list