FLINT3.7.0-dev

nfloat_cmp, nfloat_cmpabs

Synopsis#include <flint/nfloat.h>
int nfloat_cmp(int * res, nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)source
int nfloat_cmpabs(int * res, nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)source

Set 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).