FLINT3.7.0-dev

fexpr_get_decimal_str

Synopsis#include <flint/fexpr.h>
char * fexpr_get_decimal_str(const fexpr_t expr, slong digits, ulong flags)source

Returns a newly allocated string with a decimal approximation of the value of expr with digits significant digits, or "?" if the expression cannot be evaluated numerically. The expression is evaluated in ball arithmetic with increasing precision (up to a few thousand bits); integers, the constants Pi, NumberI, NumberE, Euler, CatalanConstant and GoldenRatio, arithmetic, roots, elementary functions, and some special functions such as Gamma, Erf, RiemannZeta, the Bessel and Airy functions are supported. flags is reserved and should be 0.

Guides#

Cite this page

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