Marc Glisse writes:
This was also discussed in
https://gmplib.org/list-archives/gmp-bugs/2013-December/003257.html
I don't know if anything changed...
Probably not. This spacey "feature" is not expected to be widely used.
--
Torbjörn
Please encrypt, key id 0xC8601622
__
On Sun, 7 May 2023, Fredrik Johansson wrote:
Dear GMP developers,
According to the documentation for mpz_set_str, "White space is allowed in
the string, and is simply ignored". Indeed,
mpz_set_str(x, "-12 3", 10)
works.
However, mpz_set_str returns that the string is invalid when a space
On 2023-05-07 15:37:12 +0200, Fredrik Johansson wrote:
> However, mpz_set_str returns that the string is invalid when a space
> appears between the minus sign and the first digit. For example,
>
> mpz_set_str(x, "- 123", 10)
>
> does not work.
According to the GMP code (mpz/set_str.c), white
Dear GMP developers,
According to the documentation for mpz_set_str, "White space is allowed in
the string, and is simply ignored". Indeed,
mpz_set_str(x, "-12 3", 10)
works.
However, mpz_set_str returns that the string is invalid when a space
appears between the minus sign and the first di