Next: Exception Related Functions, Previous: Miscellaneous Functions, Up: MPFR Interface
Set the default rounding mode to rnd. The default rounding mode is to nearest initially.
Round x according to rnd with precision prec, which must be an integer between
MPFR_PREC_MIN
andMPFR_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.