 -- Function: int mpfr_set_ld (mpfr_t ROP, long double OP, mp_rnd_t RND)
 -- Function: int mpfr_set_decimal64 (mpfr_t ROP, _Decimal64 OP,
          mp_rnd_t RND)
 -- Function: int mpfr_set_z (mpfr_t ROP, mpz_t OP, mp_rnd_t RND)
 -- Function: int mpfr_set_q (mpfr_t ROP, mpq_t OP, mp_rnd_t RND)
 -- Function: int mpfr_set_f (mpfr_t ROP, mpf_t OP, mp_rnd_t RND)
     Set the value of ROP from OP, rounded toward the given direction
     RND.  Note that the input 0 is converted to +0 by `mpfr_set_ui',
     `mpfr_set_si', `mpfr_set_sj', `mpfr_set_uj', `mpfr_set_z',
     `mpfr_set_q' and `mpfr_set_f', regardless of the rounding mode.
     If the system does not support the IEEE 754 standard, `mpfr_set_d',
     `mpfr_set_ld' and `mpfr_set_decimal64' might not preserve the
     signed zeros.  The `mpfr_set_decimal64' function is built only
     with the configure option `--enable-decimal-float', which also
     requires `--with-gmp-build', and when the compiler or system
     provides the `_Decimal64' data type (GCC version 4.2.0 is known to
     support this data type, but only when configured with
     `--enable-decimal-float' too).  `mpfr_set_q' might not be able to
     work if the numerator (or the denominator) can not be
     representable as a `mpfr_t'.

     Note: If you want to store a floating-point constant to a `mpfr_t',
     you should use `mpfr_set_str' (or one of the MPFR constant
     functions, such as `mpfr_const_pi' for Pi) instead of `mpfr_set_d',
     `mpfr_set_ld' or `mpfr_set_decimal64'.  Otherwise the
     floating-point constant will be first converted into a
     reduced-precision (e.g., 53-bit) binary number before MPFR can
     work with it.

 -- Function: int mpfr_set_ui_2exp (mpfr_t ROP, unsigned long int OP,
          mp_exp_t E, mp_rnd_t RND)
 -- Function: int mpfr_set_si_2exp (mpfr_t ROP, long int OP, mp_exp_t
          E, mp_rnd_t RND)
 -- Function: int mpfr_set_uj_2exp (mpfr_t ROP, uintmax_t OP, intmax_t
          E, mp_rnd_t RND)
 -- Function: int mpfr_set_sj_2exp (mpfr_t ROP, intmax_t OP, intmax_t
          E, mp_rnd_t RND)
     Set the value of ROP from OP multiplied by two to the power E,
     rounded toward the given direction RND.  Note that the input 0 is
     converted to +0.

 -- Function: int mpfr_set_str (mpfr_t ROP, const char *S, int BASE,
          mp_rnd_t RND)
     Set ROP to the value of the string S in base BASE, rounded in the
     direction RND.  See the documentation of `mpfr_strtofr' for a
     detailed description of the valid string formats.  Contrary to
     `mpfr_strtofr', `mpfr_set_str' requires the _whole_ string to
     represent a valid floating-point number.  This function returns 0
     if the entire string up to the final null character is a valid
     number in base BASE; otherwise it returns -1, and ROP may have
     changed.

 -- Function: int mpfr_strtofr (mpfr_t ROP, const char *NPTR, char
          **ENDPTR, int BASE, mp_rnd_t RND)
     Read a floating-point number from a string NPTR in base BASE,
     rounded in the direction RND; BASE must be either 0 (to detect the
     base, as described below) or a number from 2 to 36 (otherwise the
     behavior is undefined). If NPTR starts with valid data, the result
     is stored in ROP and `*ENDPTR' points to the character just after
     the valid data (if ENDPTR is not a null pointer); otherwise ROP is
     set to zero and the value of NPTR is stored in the location
     referenced by ENDPTR (if ENDPTR is not a null pointer). The usual
     ternary value is returned.

     Parsing follows the standard C `strtod' function with some
     extensions.  Case is ignored. After optional leading whitespace,
     one has a subject sequence consisting of an optional sign (`+' or
     `-'), and either numeric data or special data. The subject
     sequence is defined as the longest initial subsequence of the
     input string, starting with the first non-whitespace character,
     that is of the expected form.

     The form of numeric data is a non-empty sequence of significand
     digits with an optional decimal point, and an optional exponent
     consisting of an exponent prefix followed by an optional sign and
     a non-empty sequence of decimal digits. A significand digit is
     either a decimal digit or a Latin letter (62 possible characters),
     with `a' = 10, `b' = 11, ..., `z' = 35; its value must be strictly
     less than the base.  The decimal point can be either the one
     defined by the current locale or the period (the first one is
     accepted for consistency with the C standard and the practice, the
     second one is accepted to allow the programmer to provide MPFR
     numbers from strings in a way that does not depend on the current
     locale).  The exponent prefix can be `e' or `E' for bases up to
     10, or `@' in any base; it indicates a multiplication by a power
     of the base. In bases 2 and 16, the exponent prefix can also be
     `p' or `P', in which case it introduces a binary exponent: it
     indicates a multiplication by a power of 2 (there is a difference
     only for base 16).  The value of an exponent is always written in
     base 10.  In base 2, the significand can start with `0b' or `0B',
     and in base 16, it can start with `0x' or `0X'.

     If the argument BASE is 0, then the base is automatically detected
     as follows. If the significand starts with `0b' or `0B', base 2 is
     assumed. If the significand starts with `0x' or `0X', base 16 is
     assumed. Otherwise base 10 is assumed.

     Note: The exponent must contain at least a digit. Otherwise the
     possible exponent prefix and sign are not part of the number
     (which ends with the significand). Similarly, if `0b', `0B', `0x'
     or `0X' is not followed by a binary/hexadecimal digit, then the
     subject sequence stops at the character `0'.

     Special data (for infinities and NaN) can be `@inf@' or
     `@nan@(n-char-sequence)', and if BASE <= 16, it can also be
     `infinity', `inf', `nan' or `nan(n-char-sequence-opt)', all case
     insensitive.  A `n-char-sequence-opt' is a possibly empty string
     containing only digits, Latin letters and the underscore (0, 1, 2,
     ..., 9, a, b, ..., z, A, B, ..., Z, _). Note: one has an optional
     sign for all data, even NaN.


 -- Function: void mpfr_set_inf (mpfr_t X, int SIGN)
 -- Function: void mpfr_set_nan (mpfr_t X)
     Set the variable X to infinity or NaN (Not-a-Number) respectively.
     In `mpfr_set_inf', X is set to plus infinity iff SIGN is
     nonnegative.

 -- Function: void mpfr_swap (mpfr_t X, mpfr_t Y)
     Swap the values X and Y efficiently. Warning: the precisions are
     exchanged too; in case the precisions are different, `mpfr_swap'
     is thus not equivalent to three `mpfr_set' calls using a third
     auxiliary variable.

