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

◆ remainder()

const mpreal mpfr::remainder ( const mpreal & x,
const mpreal & y,
mp_rnd_t rnd_mode = mpreal::get_default_rnd() )
inline

Definition at line 2504 of file mpreal.h.

2505{
2506 mpreal a(0,(std::max)(y.getPrecision(), x.getPrecision()));
2507 mpfr_remainder(a.mpfr_ptr(), x.mpfr_srcptr(), y.mpfr_srcptr(), rnd_mode);
2508 return a;
2509}
::mpfr_srcptr mpfr_srcptr() const
Definition mpreal.h:1767
int getPrecision() const
Definition mpreal.h:1985
volatile int x