FLINT3.7.0-dev

arf_set_fmpq

Synopsis#include <flint/arf.h>
int arf_set_fmpq(arf_t y, const fmpq_t x, slong prec, arf_rnd_t rnd)source

Sets y to the rational number x rounded to prec bits in the direction rnd, and returns the inexact flag. This is arf_fmpz_div_fmpz applied to the numerator and denominator.

Cite this page

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