FLINT3.7.0-dev

_decmag_get_str, _decmag_write, _decmag_randtest, _decmag_randtest_special

Synopsis#include <flint/decimal.h>
char * _decmag_get_str(const decmag_t x, gr_ctx_t ctx)source
int _decmag_write(gr_stream_t out, const decmag_t x, gr_ctx_t ctx)source
void _decmag_randtest(decmag_t res, flint_rand_t state, gr_ctx_t ctx)source
void _decmag_randtest_special(decmag_t res, flint_rand_t state, gr_ctx_t ctx)source

A radius is printed with all its digits, in positional notation when its scientific exponent E satisfies -3 \le E \le 5 and in scientific notation otherwise (or always, with DECIMAL_WRITE_SCIENTIFIC).

Cite this page

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