mpfr function: convert mpfr_t to mpz_t

Dirk Osterkamp osterkamp at gmx.de
Thu Mar 11 23:44:01 CET 2004


Hello,

does someone know a way to convert a mpfr_t variable to mpz_t? (with 
truncation of course.) For mpf variables there exists such a function:

void mpz_set_f (mpz_t rop, mpf_t op)

Is there an (easy) way to do it with mpfr too?

Thanky you for any help!

Dirk


More information about the gmp-discuss mailing list