decfloat_get_radix_integer, decfloat_get_radix_integer_Bexp_fmpz, decfloat_set_radix_integer, decfloat_set_radix_integer_Bexp_fmpz
Synopsis
#include <flint/decimal.h>int decfloat_get_radix_integer(radix_integer_t res, const decfloat_t x, gr_ctx_t ctx)sourceint decfloat_get_radix_integer_Bexp_fmpz(radix_integer_t m, fmpz_t e, const decfloat_t x, gr_ctx_t ctx)sourceint decfloat_set_radix_integer(decfloat_t res, const radix_integer_t m, gr_ctx_t ctx)sourceint decfloat_set_radix_integer_Bexp_fmpz(decfloat_t res, const radix_integer_t m, const fmpz_t e, gr_ctx_t ctx)sourceConversions between x and integers in the limb radix of the context (DECIMAL_CTX_RADIX(ctx)), in time linear in the number of limbs. The first function requires an integer x (GR_DOMAIN otherwise); the second gives the exact representation x = m B^e with m the canonical mantissa (no zero limbs at either end). The set functions round m or m B^e to the context precision.
Cite this page
The FLINT team, “decfloat_get_radix_integer, decfloat_get_radix_integer_Bexp_fmpz, decfloat_set_radix_integer, decfloat_set_radix_integer_Bexp_fmpz (decimal.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/decimal/decfloat_get_radix_integer.html (generated 2026-10-20).
@misc{flint-doc-decimal-decfloat-get-radix-integer,
author = {{The FLINT team}},
title = {{decfloat\_get\_radix\_integer, decfloat\_get\_radix\_integer\_Bexp\_fmpz, decfloat\_set\_radix\_integer, decfloat\_set\_radix\_integer\_Bexp\_fmpz (decimal.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/decimal/decfloat_get_radix_integer.html},
note = {Generated 2026-10-20}
}