FLINT3.7.0-dev

nfloat_neg, nfloat_abs

Synopsis#include <flint/nfloat.h>
int nfloat_neg(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx)source
int nfloat_abs(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx)source

Set res to -x or |x|, exactly.

Guides#

Cite this page

The FLINT team, “nfloat_neg, nfloat_abs (nfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nfloat/nfloat_neg.html (generated 2026-10-20).