On 2020-08-19 10:39:01 +0200, Paul Zimmermann wrote:
>Dear Johannes,
>
> if you read carefully the GMP documentation, you will see this is not a bug:
>
> -- Function: size_t mpz_sizeinbase (const mpz_t OP, int BASE)
> Return the size of OP measured in number of digits in the given
Dear Johannes,
if you read carefully the GMP documentation, you will see this is not a bug:
-- Function: size_t mpz_sizeinbase (const mpz_t OP, int BASE)
Return the size of OP measured in number of digits in the given
BASE. BASE can vary from 2 to 62. The sign of OP is
"Lebender, Johannes" writes:
i found a possible bug in the mpz_sizeinbase() function. e.g.
mpz_sizeinbase(63, 10) returns 2
mpz_sizeinbase(64, 10) returns 3
Why do you think those values are wrong? Which values do you expect
instead?
--
Torbjörn
Please encrypt, key id 0xC8601622
Dear GMP maintainers,
i found a possible bug in the mpz_sizeinbase() function. e.g.
mpz_sizeinbase(63, 10) returns 2
mpz_sizeinbase(64, 10) returns 3
Attached to this mail you can find a detailed report with all
informations needed as described in
https://gmplib.org/manual/Reporting-Bugs