_arf_mpn_set_round
Synopsis
#include <flint/arf.h>int _arf_mpn_set_round(nn_ptr res, slong * exp, nn_srcptr x, slong xn, slong prec, arf_rnd_t rnd)sourceRounds the exact value , where x has a nonzero top limb (leading zero bits allowed), to prec bits in the sign-free mode rnd, writing the normalised limbs res with the bits below prec zero: the result is . Returns the inexact flag. res may be x or lie below it in the same buffer (in-place rounding; then ).
Cite this page
The FLINT team, “_arf_mpn_set_round (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/_arf_mpn_set_round.html (generated 2026-11-20).
@misc{flint-doc-arf-arf-mpn-set-round,
author = {{The FLINT team}},
title = {{\_arf\_mpn\_set\_round (arf.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arf/_arf_mpn_set_round.html},
note = {Generated 2026-11-20}
}