_decmag_init, _decmag_clear, _decmag_swap, _decmag_zero, _decmag_one, _decmag_inf, _decmag_set, _decmag_set_lower, _decmag_set_round, _decmag_is_zero, _decmag_is_inf, _decmag_is_finite, _decmag_equal, _decmag_cmp, _decmag_cmp_10exp_si, _decmag_is_10exp, _decmag_digits, _decmag_get_sci_exp
#include <flint/decimal.h>Basic operations. set rounds x up to the radius precision of the context (a plain copy for a normalized x), set_lower rounds down, and set_round rounds up to prec digits (clamped to [1, R]) regardless of the context setting. digits returns the number of digits of the mantissa (0 for zero and infinity) and get_sci_exp the exponent E with 10^E \le x < 10^{E+1} (x finite and nonzero).
The FLINT team, “_decmag_init, _decmag_clear, _decmag_swap, _decmag_zero, _decmag_one, _decmag_inf, _decmag_set, _decmag_set_lower, _decmag_set_round, _decmag_is_zero, _decmag_is_inf, _decmag_is_finite, _decmag_equal, _decmag_cmp, _decmag_cmp_10exp_si, _decmag_is_10exp, _decmag_digits, _decmag_get_sci_exp (decimal.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/decimal/_decmag_init.html (generated 2026-10-20).
@misc{flint-doc-decimal-decmag-init,
author = {{The FLINT team}},
title = {{\_decmag\_init, \_decmag\_clear, \_decmag\_swap, \_decmag\_zero, \_decmag\_one, \_decmag\_inf, \_decmag\_set, \_decmag\_set\_lower, \_decmag\_set\_round, \_decmag\_is\_zero, \_decmag\_is\_inf, \_decmag\_is\_finite, \_decmag\_equal, \_decmag\_cmp, \_decmag\_cmp\_10exp\_si, \_decmag\_is\_10exp, \_decmag\_digits, \_decmag\_get\_sci\_exp (decimal.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/decimal/_decmag_init.html},
note = {Generated 2026-10-20}
}