FLINT3.7.0-dev

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)source
char * decfloat_get_str_sci(const decfloat_t x, gr_ctx_t ctx)source
int decfloat_write(gr_stream_t out, const decfloat_t x, gr_ctx_t ctx)source
int decfloat_write_sci(gr_stream_t out, const decfloat_t x, gr_ctx_t ctx)source

Prints 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).