Macaulay2 Engine
Loading...
Searching...
No Matches
◆
modf()
const
mpreal
mpfr::modf
(
const
mpreal
&
v
,
mpreal
&
n
)
inline
Definition at line
2153
of file
mpreal.h
.
2154
{
2155
mpreal
f(v);
2156
2157
// rounding is not important since we are using the same number
2158
mpfr_frac (f.mpfr_ptr(),f.mpfr_srcptr(),
mpreal::get_default_rnd
());
2159
mpfr_trunc(n.
mpfr_ptr
(),v.
mpfr_srcptr
());
2160
return
f;
2161
}
mpfr::mpreal::mpfr_srcptr
::mpfr_srcptr mpfr_srcptr() const
Definition
mpreal.h:1767
mpfr::mpreal::get_default_rnd
static mp_rnd_t get_default_rnd()
Definition
mpreal.h:182
mpfr::mpreal::mpfr_ptr
::mpfr_ptr mpfr_ptr()
Definition
mpreal.h:1765
mpfr::mpreal
Definition
mpreal.h:175
mpfr
Generated on
for Macaulay2 Engine by
1.15.0