mpfr function: convert mpfr_t to mpz_t

Torbjorn Granlund tg at
Fri Mar 12 00:27:07 CET 2004

Dirk Osterkamp <osterkamp at> writes:

  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!
You will  probably get better answers via the mpfr mailing list,
mpfr at


More information about the gmp-discuss mailing list