FLINT3.7.0-dev

nfloat_set_other

Synopsis#include <flint/nfloat.h>
int nfloat_set_other(nfloat_ptr res, gr_srcptr x, gr_ctx_t x_ctx, gr_ctx_t ctx)source

Sets res to the element x of the ring x_ctx, rounded. Elements of other nfloat contexts, fmpz, fmpq, arf_t and arb_t (whose midpoint is used) are converted directly; other rings are converted through arf_t with gr_set_other, whose status is returned (for example GR_DOMAIN for a non-real number).

Guides#

Cite this page

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