FLINT3.7.0-dev

decfloat_set_round_fmpq_reference

Synopsis#include <flint/decimal.h>
int decfloat_set_round_fmpq_reference(decfloat_t res, const fmpq_t x, slong prec, int rnd, gr_ctx_t ctx)source

Reference implementation of correctly rounded conversion using plain fmpz arithmetic, used as an oracle by the test code.

Cite this page

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