nfloat_floor, nfloat_ceil, nfloat_trunc, nfloat_nint
Synopsis
#include <flint/nfloat.h>int nfloat_floor(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx)sourceint nfloat_ceil(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx)sourceint nfloat_trunc(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx)sourceint nfloat_nint(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx)sourceRound x to an integer toward -\infty, toward +\infty, toward zero, or to the nearest integer (ties to even). The results are exact.
Guides#
Cite this page
The FLINT team, “nfloat_floor, nfloat_ceil, nfloat_trunc, nfloat_nint (nfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nfloat/nfloat_floor.html (generated 2026-10-20).
@misc{flint-doc-nfloat-nfloat-floor,
author = {{The FLINT team}},
title = {{nfloat\_floor, nfloat\_ceil, nfloat\_trunc, nfloat\_nint (nfloat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nfloat/nfloat_floor.html},
note = {Generated 2026-10-20}
}