elated Functions
============================================

 -- Function: int mpfr_rint (mpfr_t ROP, mpfr_t OP, mp_rnd_t RND)
 -- Function: int mpfr_ceil (mpfr_t ROP, mpfr_t OP)
 -- Function: int mpfr_floor (mpfr_t ROP, mpfr_t OP)
 -- Function: int mpfr_round (mpfr_t ROP, mpfr_t OP)
 -- Function: int mpfr_trunc (mpfr_t ROP, mpfr_t OP)
     Set ROP to OP rounded to an integer.  `mpfr_rint' rounds to the
     nearest representable integer in the given rounding mode,
     `mpfr_ceil' rounds to the next higher or equal representable
     integer, `mpfr_floor' to the next lower or equal representable
     integer, `mpfr_round' to the nearest representable integer,
     rounding halfway cases away from zero (as in the roundTiesToAway
     mode of IEEE 754-2008), and `mpfr_trunc' to the next representable
     integer toward zero.

     The returned value is zero when the result is exact, positive when
     it is greater than the original value of OP, and negative when it
     is smaller.  More precisely, the returned value is 0 when OP is an
     integer representable in ROP, 1 or -1 when OP is an integer that
     is not representable in ROP, 2 or -2 when OP is not an integer.

     Note that `mpfr_round' is different from `mpfr_rint' called with
     the rounding to nearest mode (where halfway cases are rounded to
     an even integer or significand). Note also that no double rounding
     is performed; for instance, 4.5 (100.1 in binary) is rounded by
     `mpfr_round' to 4 (100 in binary) in 2-bit precision, though
     `round(4.5)' is equal to 5 and 5 (101 in binary) is rounded to 6
     (110 in binary) in 2-bit precision.

 -- Function: int mpfr_rint_ceil (mpfr_t ROP, mpfr_t OP, mp_rnd_t RND)
 -- Function: int mpfr_rint_floor (mpfr_t ROP, mpfr_t OP, mp_rnd_t RND)
 -- Function: int mpfr_rint_round (mpfr_t ROP, mpfr_t OP, mp_rnd_t RND)
 -- Function: int mpfr_rint_trunc (mpfr_t ROP, mpfr_t OP, mp_rnd_t RND)
     Set ROP to OP rounded to an integer.  `mpfr_rint_ceil' rounds to
     the next higher or equal integer, `mpfr_rint_floor' to the next
     lower or equal integer, `mpfr_rint_round' to the nearest integer,
     rounding halfway cases away from zero, and `mpfr_rint_trunc' to
     the next integer toward zero.  If the result is not representable,
     it is rounded in the direction RND.  The returned value is the
     ternary value associated with the considered round-to-integer
     function (regarded in the same way as any other mathematical
     function).

 -- Function: int mpfr_frac (mpfr_t ROP, mpfr_t OP, mp_rnd_t RND)
     Set ROP to the fractional part of OP, having the same sign as OP,
     rounded in the direction RND (unlike in `mpfr_rint', RND affects
     only how the exact fractional part is rounded, not how the
     fractional part is generated).

 -- Function: int mpfr_modf (mpfr_t IOP, mpfr_t FOP, mpfr_t OP,
          mp_rnd_t RND)
     Set simultaneously IOP to the integral part of OP and FOP to the
     fractional part of OP, rounded in the direction RND with the
     corresponding precision of IOP and FOP (equivalent to
     `mpfr_trunc(IOP, OP, RND)' and `mpfr_frac(FOP, OP, RND)'). The
     variables IOP and FOP must be different. Return 0 iff both results
     are exact.

 -- Function: int mpfr_fmod (mpfr_t R, mpfr_t X, mpfr_t Y, mp_rnd_t RND)
 -- Function: int mpfr_remainder (mpfr_t R, mpfr_t X, mpfr_t Y,
          mp_rnd_t RND)
 -- Function: int mpfr_remquo (mpfr_t R, long* Q, mpfr_t X, mpfr_t Y,
          mp_rnd_t RND)
     Set R to the value of x - n y, rounded according to the direction
     RND, where n is the integer quotient of X divided by Y, defined as
     follows: n is rounded toward zero for `mpfr_fmod', and to the
     nearest integer (ties rounded to even) for `mpfr_remainder' and
     `mpfr_remquo'.

     Special values are handled as described in Section F.9.7.1 of the
     ISO C99 standard: If X is infinite or Y is zero, R is NaN.  If Y
     is infinite and X is finite, R is X rounded to the precision of R.
     If R is zero, it has the sign of X.  The return value is the
     ternary value corresponding to R.

     Additionally, `mpfr_remquo' stores the low significant bits from
     the quotient in *Q (more precisely the number of bits in a `long'
     minus one), with the sign of X divided by Y (except if those low
     bits are all zero, in which case zero is returned).  Note that X
     may be so large in magnitude relative to Y that an exact
     representation of the quotient is not practical.  `mpfr_remainder'
     and `mpfr_remquo' functions are useful for additive argument
     reduction.

 -- Function: int mpfr_integer_p (mpfr_t OP)
     Return non-zero iff OP is an integer.

