FLINT3.7.0-dev

_gr_ctx_init_decimal

Synopsis#include <flint/decimal.h>
void _gr_ctx_init_decimal(gr_ctx_t ctx, decimal_ctx_which which, unsigned int e, slong prec, int rnd, int flags)source

Generalized initialization where which is DECIMAL_CTX_FLOAT, DECIMAL_CTX_BALL, DECIMAL_CTX_CFLOAT or DECIMAL_CTX_CBALL, e is the limb exponent (B = 10^e, or e = 0 to select the largest possible), and rnd is the default rounding mode. Elements of contexts with different limb exponents are not interchangeable (but can be converted with gr_set_other).

Cite this page

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