arb_set, arb_set_arf, arb_set_si, arb_set_ui, arb_set_fmpz, arb_set_d
Synopsis
#include <flint/arb.h>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).
@misc{flint-doc-arb-arb-set,
author = {{The FLINT team}},
title = {{arb\_set, arb\_set\_arf, arb\_set\_si, arb\_set\_ui, arb\_set\_fmpz, arb\_set\_d (arb.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arb/arb_set.html},
note = {Generated 2026-10-20}
}