I'm just starting with MPIR and I'm executing this code:
mpf_t t2;
mpf_init2(t2, 10000);
mpf_set_d(t2, 5.999999999999);
gmp_printf("fixed point mpf %.40Ff", t2);
The output is:
fixed point mpf 5.9999999999989999110994176589883863925934
This seems highly innacurate, although I've set the precision to 10000. Am I doing something wrong?