_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)sourceGeneralized initialization where which is DECIMAL_CTX_FLOAT, DECIMAL_CTX_BALL, DECIMAL_CTX_CFLOAT or DECIMAL_CTX_CBALL, e is the limb exponent (, or 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-11-02).
@misc{flint-doc-decimal-gr-ctx-init-decimal,
author = {{The FLINT team}},
title = {{\_gr\_ctx\_init\_decimal (decimal.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/decimal/_gr_ctx_init_decimal.html},
note = {Generated 2026-11-02}
}