nfloat_sgn, nfloat_im
Synopsis
#include <flint/nfloat.h>int nfloat_sgn(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx)sourceint nfloat_im(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx)sourceSet res to the sign of x (-1, 0 or 1, and NaN for NaN), and to the imaginary part of x, which is zero.
Guides#
Cite this page
The FLINT team, “nfloat_sgn, nfloat_im (nfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nfloat/nfloat_sgn.html (generated 2026-10-20).
@misc{flint-doc-nfloat-nfloat-sgn,
author = {{The FLINT team}},
title = {{nfloat\_sgn, nfloat\_im (nfloat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nfloat/nfloat_sgn.html},
note = {Generated 2026-10-20}
}