FLINT3.7.0-dev

DECIMAL_ALLOW_INF, DECIMAL_ALLOW_NAN

Synopsis#include <flint/decimal.h>
DECIMAL_ALLOW_INFsource
DECIMAL_ALLOW_NANsource

Admit infinities, respectively NaN, as floating-point numbers (the flags have no effect in ball contexts). Without these flags, operations that would produce such values (overflow when exponent limits are set, 1/0, \infty - \infty) return GR_DOMAIN or GR_UNABLE.

Guides#

Cite this page

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