FLINT3.7.0-dev

_arf_rounding_certain

Synopsis#include <flint/arf.h>
int _arf_rounding_certain(nn_srcptr a, slong an, slong e, slong prec)source

Whether rounding {a,an}\{a, \mathit{an}\} (an approximation of a value PP within 2e2^e units of a0a_0, on either side) to prec bits gives the same result as rounding PP, in every strict rounding mode, with PP inexact: the bits of a from bit ee of its lowest limb up to the bit below the rounding point (at most one limb of them) are neither all zero nor all ones. The same argument as above, for an approximation whose error band is given by a bit position rather than a guard limb.

Cite this page

The FLINT team, “_arf_rounding_certain (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/_arf_rounding_certain.html (generated 2026-11-20).