mpf_set_str() seems buggy

Torbjörn Granlund tg at gmplib.org
Tue Jul 23 10:50:24 CEST 2024


  It seems that the exponent being read in by mpf_dset_str() is wrong.

  I expect the new exponent (last line) to read -5 but it reads 4.

  The error is also seen in the line before that with gmp_printf()

I find it fascinating that you think a GMP function which has been in
use for over 30 years could be fundamentally broken.  Isn't it more
plausible that you've made an error?

The real error here is that you have not taken the time to read the
documentation of the GMP functions you're using.

No GMP bug.

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list