FLINT3.7.0-dev

fexpr_set_arf, fexpr_set_d

Synopsis#include <flint/fexpr.h>
void fexpr_set_arf(fexpr_t res, const arf_t x)source
void fexpr_set_d(fexpr_t res, double x)source

Sets res to an expression for the exact value of the floating-point number x = m \cdot 2^e (m odd): an integer if 0 \le e \le 20, a fraction Div(m, 2^-e) if -8 \le e < 0, and otherwise Pow(2, e), Neg(Pow(2, e)) or Mul(m, Pow(2, e)). Infinities are written as Infinity and Neg(Infinity), NaN as Undefined.

Cite this page

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