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

◆ fmod

const mpreal fmod ( const mpreal & x,
const mpreal & y,
mp_rnd_t rnd_mode = mpreal::get_default_rnd() )
friend

Definition at line 2657 of file mpreal.h.

2658{
2659 mpreal a;
2660 mp_prec_t yp, xp;
2661
2662 yp = y.get_prec();
2663 xp = x.get_prec();
2664
2665 a.set_prec(yp>xp?yp:xp);
2666
2667 mpfr_fmod(a.mp, x.mp, y.mp, rnd_mode);
2668
2669 return a;
2670}
volatile int x

References fmod, get_default_rnd(), get_prec(), mp, mpreal(), set_prec(), and x.

Referenced by fmod, and rem.