convert a gmpz to a gmpf in one call?

Richard Fateman fateman at
Fri Jan 27 00:18:24 CET 2006

I can answer my own question... I spotted this..
so I don't have to go through character strings...

void mpf_set_z (mpf_t rop, mpz_t op)

Richard Fateman wrote:

> currently I can convert the gmpz number to a character string and
> then convert the character string to a gmpf.
> This strikes me as -um- unfelicitous?
Sorry to waste your time!

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the gmp-discuss mailing list