integer part of an mpf number

Helmut Jarausch jarausch at skynet.be
Sat Mar 3 17:11:00 CET 2007


Hi,

I'm new to gmp and I couldn't find a means
to get the integer part of a long float (mpf) number.
Something like a cast  (mpz_t)( an_mpf_variable)

There must be something like this (I'd like to use this
to get a rational approximation with a given maximal length
of the denominator)

Many thanks for a hint,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany


More information about the gmp-discuss mailing list