decfloat_get_str, decfloat_get_str_sci, decfloat_write, decfloat_write_sci
Synopsis
#include <flint/decimal.h>char * decfloat_get_str(const decfloat_t x, gr_ctx_t ctx)sourcechar * decfloat_get_str_sci(const decfloat_t x, gr_ctx_t ctx)sourceint decfloat_write(gr_stream_t out, const decfloat_t x, gr_ctx_t ctx)sourceint decfloat_write_sci(gr_stream_t out, const decfloat_t x, gr_ctx_t ctx)sourcePrints x with all its significant digits, either in positional notation (when -6 \le E \le 20 and the context does not select scientific notation, or when E = 0) or in scientific notation (1.2345e-30).
Cite this page
The FLINT team, “decfloat_get_str, decfloat_get_str_sci, decfloat_write, decfloat_write_sci (decimal.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/decimal/decfloat_get_str.html (generated 2026-10-20).
@misc{flint-doc-decimal-decfloat-get-str,
author = {{The FLINT team}},
title = {{decfloat\_get\_str, decfloat\_get\_str\_sci, decfloat\_write, decfloat\_write\_sci (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_str.html},
note = {Generated 2026-10-20}
}