FLINT3.7.0-dev

mp_real_zero, mp_real_set, mp_real_set_ui, mp_real_set_si, mp_real_set_fmpz

Synopsis#include <flint/mp_real.h>
void mp_real_zero(mp_real_t x)source
void mp_real_set(mp_real_t res, const mp_real_t x)source
void mp_real_set_ui(mp_real_t x, ulong c)source
void mp_real_set_si(mp_real_t x, slong c)source
void mp_real_set_fmpz(mp_real_t x, const fmpz_t f)source

Set the ball to exact zero, to a copy of x, or to the exact integer c resp. f.

mp_real_set_fmpz copies the limbs of f above its low zero limbs directly into the mantissa, without temporaries.

Guides#

Cite this page

The FLINT team, “mp_real_zero, mp_real_set, mp_real_set_ui, mp_real_set_si, mp_real_set_fmpz (mp_real.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mp_real/mp_real_zero.html (generated 2026-10-20).