FLINT3.7.0-dev

arf_set_round, arf_set_round_si, arf_set_round_ui, arf_set_round_mpz, arf_set_round_fmpz

Synopsis#include <flint/arf.h>
int arf_set_round(arf_t y, const arf_t x, slong prec, arf_rnd_t rnd)source
int arf_set_round_si(arf_t x, slong v, slong prec, arf_rnd_t rnd)source
int arf_set_round_ui(arf_t x, ulong v, slong prec, arf_rnd_t rnd)source
int arf_set_round_mpz(arf_t y, const mpz_t x, slong prec, arf_rnd_t rnd)source
int arf_set_round_fmpz(arf_t y, const fmpz_t x, slong prec, arf_rnd_t rnd)source

Set the output to the input rounded to prec bits in the direction rnd, and return the inexact flag.

Guides#

Cite this page

The FLINT team, “arf_set_round, arf_set_round_si, arf_set_round_ui, arf_set_round_mpz, arf_set_round_fmpz (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_set_round.html (generated 2026-10-20).