FLINT3.7.0-dev

DECIMAL_RND_DOWN, DECIMAL_RND_UP, DECIMAL_RND_FLOOR, DECIMAL_RND_CEIL, DECIMAL_RND_NEAR, DECIMAL_RND_NEAR_AWAY, DECIMAL_RND_NEAR_ZERO

Synopsis#include <flint/decimal.h>
DECIMAL_RND_DOWNsource
DECIMAL_RND_UPsource
DECIMAL_RND_FLOORsource
DECIMAL_RND_CEILsource
DECIMAL_RND_NEARsource
DECIMAL_RND_NEAR_AWAYsource
DECIMAL_RND_NEAR_ZEROsource

Rounding toward zero, away from zero, toward -\infty, toward +\infty, to nearest with ties to even, to nearest with ties away from zero, and to nearest with ties toward zero. All operations are correctly rounded in the selected mode.

Guides#

Cite this page

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