decfloat_digits, decfloat_limbs, _decfloat_mant_digits, _decfloat_val10_clamped, decfloat_get_sci_exp, decfloat_get_sci_exp_si
#include <flint/decimal.h>slong decfloat_digits(const decfloat_t x, gr_ctx_t ctx)sourceslong decfloat_limbs(const decfloat_t x, gr_ctx_t ctx)sourceslong _decfloat_mant_digits(const decfloat_t x, gr_ctx_t ctx)sourceslong _decfloat_val10_clamped(const decfloat_t x, gr_ctx_t ctx)sourcevoid decfloat_get_sci_exp(fmpz_t E, const decfloat_t x, gr_ctx_t ctx)sourceint decfloat_get_sci_exp_si(slong * E, const decfloat_t x, gr_ctx_t ctx)sourceWriting |x| = M \cdot 10^v with M an integer not divisible by 10: the number of digits of M (the smallest precision at which x is representable; decimal numbers do not track significance, so this is a property of the value), the number of limbs of the mantissa, the number of digits of the limb mantissa including the trailing zeros of its lowest limb, the exponent v (clamped to \pm DECFLOAT_EXP_CLAMP), and the scientific exponent E with 10^E \le |x| < 10^{E+1} (the last function returns 0 if E does not fit in a word). The digit counts are zero for special values; the value must be nonzero and finite for the exponent functions.
The FLINT team, “decfloat_digits, decfloat_limbs, _decfloat_mant_digits, _decfloat_val10_clamped, decfloat_get_sci_exp, decfloat_get_sci_exp_si (decimal.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/decimal/decfloat_digits.html (generated 2026-10-20).
@misc{flint-doc-decimal-decfloat-digits,
author = {{The FLINT team}},
title = {{decfloat\_digits, decfloat\_limbs, \_decfloat\_mant\_digits, \_decfloat\_val10\_clamped, decfloat\_get\_sci\_exp, decfloat\_get\_sci\_exp\_si (decimal.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/decimal/decfloat_digits.html},
note = {Generated 2026-10-20}
}