Macaulay2 Engine
Loading...
Searching...
No Matches
◆
lround()
long mpfr::lround
(
const
mpreal
&
v
)
inline
Definition at line
2747
of file
mpreal.h
.
2748
{
2749
long
r = std::numeric_limits<long>::min();
2750
mpreal
x
=
round
(v);
2751
if
(
abs
(
x
) < -
mpreal
(r))
// Assume mpreal(LONG_MIN) is exact
2752
r =
x
.toLong();
2753
return
r;
2754
}
mpfr::mpreal
Definition
mpreal.h:175
mpfr::round
const mpreal round(const mpreal &v)
Definition
mpreal.h:2740
x
volatile int x
Definition
overflow-test.cpp:68
abs
#define abs(x)
Definition
polyroots.cpp:51
mpfr
Generated on
for Macaulay2 Engine by
1.15.0