FLINT3.7.0-dev

_decfloat_pos_inf, _decfloat_neg_inf, _decfloat_nan, _decfloat_operand_status, _decfloat_finalize, _decfloat_finalize_info, _deccfloat_finalize

Synopsis#include <flint/decimal.h>
void _decfloat_pos_inf(decfloat_t res)source
void _decfloat_neg_inf(decfloat_t res)source
void _decfloat_nan(decfloat_t res)source
int _decfloat_operand_status(const decfloat_t x, gr_ctx_t ctx)source
int _decfloat_finalize(decfloat_t res, gr_ctx_t ctx)source
int _decfloat_finalize_info(decfloat_t res, decimal_rounding_info * info, gr_ctx_t ctx)source
int _deccfloat_finalize(deccfloat_t res, gr_ctx_t ctx)source

Set a special value regardless of the context flags; return whether x is admitted as an operand (GR_SUCCESS for a finite value or an admitted special value, otherwise GR_DOMAIN for an infinity and GR_UNABLE for NaN); and check the exponent limits and the admitted special values of a computed result, flushing or overflowing it as the context prescribes.

Cite this page

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