gr_floor, gr_ceil, gr_trunc, gr_nint
Synopsis
#include <flint/gr.h>Set res to the integer obtained by rounding x towards -\infty, +\infty, zero, or to the nearest integer with ties to even. For complex balls (acb) the real part is rounded and the result is real.
Cite this page
The FLINT team, “gr_floor, gr_ceil, gr_trunc, gr_nint (gr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr/gr_floor.html (generated 2026-10-20).
@misc{flint-doc-gr-gr-floor,
author = {{The FLINT team}},
title = {{gr\_floor, gr\_ceil, gr\_trunc, gr\_nint (gr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr/gr_floor.html},
note = {Generated 2026-10-20}
}