et_default_rounding_mode (void)
     Get the default rounding mode.

 -- Function: int mpfr_prec_round (mpfr_t X, mp_prec_t PREC, mp_rnd_t
          RND)
     Round X according to RND with precision PREC, which must be an
     integer between `MPFR_PREC_MIN' and `MPFR_PREC_MAX' (otherwise the
     behavior is undefined).  If PREC is greater or equal to the
     precision of X, then new space is allocated for the significand,
     and it is filled with zeros.  Otherwise, the significand is
     rounded to precision PREC with the given direction. In both cases,
     the precision of X is changed to PREC.

 -- Function: int mpfr_round_prec (mpfr_t X, mp_rnd_t RND, mp_prec_t
          PREC)
     [This function is obsolete. Please use `mpfr_prec_round' instead.]

 -- Function: int mpfr_can_round (mpfr_t B, mp_exp_t ERR, mp_rnd_t
          RND1, mp_rnd_t RND2, mp_prec_t PREC)
     Assuming B is an approximation of an unknown number X in the
     direction RND1 with error at most two to the power E(b)-ERR where
     E(b) is the exponent of B, return a non-zero value if one is able
     to round correctly X to precision PREC with the direction RND2,
     and 0 otherwise (including for NaN and Inf).  This function *does
     not modify* its arguments.

     Note: if one wants to also determine the correct ternary value
     when rounding B to precision PREC, a useful trick is the following:    if (mpfr_can_round (b, err, rnd1, GMP_RNDZ, prec + (rnd2 == GMP_RNDN)))
           ...
      Indeed, if RND2 is `GMP_RNDN', this will check if one can round
     to PREC+1 bits with a directed rounding: if so, one can surely
     round to nearest to PREC bits, and in addition one can determine
     the correct ternary value, which would not be the case when B is
     near from a value exactly representable on PREC bits.

 -- Function: const char * mpfr_print_rnd_mode (mp_rnd_t RND)
     Return the input string (GMP_RNDD, GMP_RNDU, GMP_RNDN, GMP_RNDZ)
     corresponding to the rounding mode RND or a null pointer if RND is
     an invalid rounding mode.

