FLINT3.7.0-dev

arf_rounds_down, arf_rounds_up

Synopsis#include <flint/arf.h>
int arf_rounds_down(arf_rnd_t rnd, int sgnbit)source
int arf_rounds_up(arf_rnd_t rnd, int sgnbit)source

Return whether the strict mode rnd rounds a number with sign bit sgnbit (1 for negative) towards zero, respectively away from zero. Both return 0 for ARF_RND_NEAR.

Cite this page

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