mpf_set_str bug

Torbjorn Granlund tg at swox.com
Sun Nov 9 16:42:22 CET 2008


Andrea Bedini <andrea.bedini at gmail.com> writes:

  I'm having troubles initializing C++ mpf_class with a string. The very
  simple test case is the following:
  
  #include <iostream>
  #include <gmpxx.h>
  
  int main (int argc, char *argv[])
  {
    mpf_class f("1.2e10");
    std::cout << f << std::endl;
  }
  
Thanks for this bug report!

I actually spotted this problem when working on the mpf_eq problem
reported a few days ago.  My change is almost identical to the one you
suggest.  I have put it at <http://gmplib.org/#STATUS>.

-- 
Torbjörn


More information about the gmp-bugs mailing list