The way how I create my mpf_class effects the result after a arithmetic operation

H8H h8h at
Tue Jan 27 14:59:34 UTC 2015


what's the differents between creating a mpf_class with a float/double
or a string (char*)?

I figured out that the way how I create the mpf_class effects the result
after an arithmetic operation. But why and why isn't it documentated?

I attached an example to show how the results differ.

Am I doing it wrong or is something fishy with the mpf_class?



-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpf_test.cpp
Type: text/x-c++src
Size: 1515 bytes
Desc: not available
URL: <>

More information about the gmp-discuss mailing list