FLINT3.7.0-dev

gr_ctx_has_real_prec, gr_ctx_set_real_prec, gr_ctx_get_real_prec

Synopsis#include <flint/gr.h>
truth_t gr_ctx_has_real_prec(gr_ctx_t ctx)source
int gr_ctx_set_real_prec(gr_ctx_t ctx, slong prec)source
int gr_ctx_get_real_prec(slong * prec, gr_ctx_t ctx)source

Return whether ctx, or a base ring of it, approximates real or complex numbers with a working precision (ball arithmetic as well as floating-point), and set or get that precision in bits. The setters return GR_UNABLE for rings without a precision.

Cite this page

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