_nfloat_cmp, _nfloat_cmpabs
Synopsis
#include <flint/nfloat.h>int _nfloat_cmp(nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)sourceint _nfloat_cmpabs(nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)sourceReturn -1, 0 or 1 according to the comparison of x and y, or of |x| and |y|; neither may be NaN.
Cite this page
The FLINT team, “_nfloat_cmp, _nfloat_cmpabs (nfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nfloat/_nfloat_cmp.html (generated 2026-10-20).
@misc{flint-doc-nfloat-nfloat-cmp,
author = {{The FLINT team}},
title = {{\_nfloat\_cmp, \_nfloat\_cmpabs (nfloat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nfloat/_nfloat_cmp.html},
note = {Generated 2026-10-20}
}