FLINT3.7.0-dev

arb_set, arb_set_arf, arb_set_si, arb_set_ui, arb_set_fmpz, arb_set_d

Synopsis#include <flint/arb.h>
void arb_set(arb_t y, const arb_t x)source
void arb_set_arf(arb_t x, const arf_t y)source
void arb_set_si(arb_t y, slong x)source
void arb_set_ui(arb_t y, ulong x)source
void arb_set_fmpz(arb_t y, const fmpz_t x)source
void arb_set_d(arb_t y, double x)source

Set the output to the exact value of the input, without rounding.

arb_set_d(x, 1.1) gives the exact ball [1.100000000000000088817841970012523\ldots \pm 0], the double nearest to 1.1, which does not contain 11/10. To enclose a decimal number, use arb_set_str or divide integers, as explained in Decimal input and output.

Guides#

Cite this page

The FLINT team, “arb_set, arb_set_arf, arb_set_si, arb_set_ui, arb_set_fmpz, arb_set_d (arb.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arb/arb_set.html (generated 2026-10-20).