nfloat_cmp, nfloat_cmpabs
Synopsis
#include <flint/nfloat.h>int nfloat_cmp(int * res, nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)sourceint nfloat_cmpabs(int * res, nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)sourceSet res to -1, 0 or 1 according to the comparison of x and y, or of |x| and |y|, and return GR_SUCCESS; return GR_UNABLE if an operand is 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}
}