"Hatem Bahig" <firstname.lastname@example.org> writes: > > Unfortunately, I tried to use this concept "cast", but I didn't sucess. mpf_get_d can be used for such a conversion. > Is there a function to calculate log for floating nu.? Not in gmp currently. But mpfr has mpfr_log2 (and others), see www.mpfr.org.