FLINT3.7.0-dev

nfloat_sgn, nfloat_im

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

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