FLINT3.7.0-dev

decfloat_set_round_info

Synopsis#include <flint/decimal.h>
int decfloat_set_round_info(decfloat_t res, const decfloat_t x, slong prec, int rnd, decimal_rounding_info * info, decmag_ptr err, gr_ctx_t ctx)source

Rounds x, additionally reporting whether the result is inexact in info and, if err is not NULL, an upper bound for the absolute rounding error in err. Both pointers are optional.

Cite this page

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