FLINT3.7.0-dev

deccfloat_get_str, deccfloat_write, deccfloat_randtest, deccfloat_randtest_special

Synopsis#include <flint/decimal.h>
char * deccfloat_get_str(const deccfloat_t x, gr_ctx_t ctx)source
int deccfloat_write(gr_stream_t out, const deccfloat_t x, gr_ctx_t ctx)source
int deccfloat_randtest(deccfloat_t res, flint_rand_t state, gr_ctx_t ctx)source
int deccfloat_randtest_special(deccfloat_t res, flint_rand_t state, gr_ctx_t ctx)source

Output in the form a for real numbers, b*I for imaginary numbers and (a + b*I) or (a - b*I) otherwise, where the parts are printed like real floating-point numbers, and random generation.

Cite this page

The FLINT team, “deccfloat_get_str, deccfloat_write, deccfloat_randtest, deccfloat_randtest_special (decimal.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/decimal/deccfloat_get_str.html (generated 2026-10-20).