FLINT3.7.0-dev

ca_get_decimal_str

Synopsis#include <flint/ca.h>
char * ca_get_decimal_str(const ca_t x, slong digits, ulong flags, ca_ctx_t ctx)source

Returns a decimal approximation of x with up to digits significant digits, as computed by ca_get_acb (or ca_get_acb_accurate_parts if flags is 1), correct to within one unit in the last digit. Fewer digits are returned if the evaluation does not reach the requested accuracy, and the string "?" if x is not a number or no finite enclosure is obtained. The caller must free the string with flint_free.

Guides#

Cite this page

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