FLINT3.7.0-dev

nfloat_ctx_set_real_prec, nfloat_ctx_get_real_prec

Synopsis#include <flint/nfloat.h>
int nfloat_ctx_set_real_prec(gr_ctx_t ctx, slong prec)source
int nfloat_ctx_get_real_prec(slong * res, gr_ctx_t ctx)source

The precision of a context cannot be changed: nfloat_ctx_set_real_prec does nothing and returns GR_UNABLE. nfloat_ctx_get_real_prec sets res to the precision in bits and returns GR_SUCCESS.

Cite this page

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