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}
const mpreal round(const mpreal &v)
Definition mpreal.h:2740
volatile int x
#define abs(x)
Definition polyroots.cpp:51