Macaulay2 Engine
Loading...
Searching...
No Matches

◆ round_style()

float_round_style std::numeric_limits< mpfr::mpreal >::round_style ( )
inlinestatic

Definition at line 3308 of file mpreal.h.

3309 {
3310 mp_rnd_t r = mpfr::mpreal::get_default_rnd();
3311
3312 switch (r)
3313 {
3314 case GMP_RNDN: return round_to_nearest;
3315 case GMP_RNDZ: return round_toward_zero;
3316 case GMP_RNDU: return round_toward_infinity;
3317 case GMP_RNDD: return round_toward_neg_infinity;
3318 default: return round_indeterminate;
3319 }
3320 }
static mp_rnd_t get_default_rnd()
Definition mpreal.h:182