FLINT3.7.0-dev

deccfloat_init, deccfloat_clear, deccfloat_swap, deccfloat_set_shallow, _deccfloat_is_real, _deccfloat_is_imaginary, _deccfloat_is_finite, _deccfloat_is_nan

Synopsis#include <flint/decimal.h>
void deccfloat_init(deccfloat_t res, gr_ctx_t ctx)source
void deccfloat_clear(deccfloat_t res, gr_ctx_t ctx)source
void deccfloat_swap(deccfloat_t x, deccfloat_t y, gr_ctx_t ctx)source
void deccfloat_set_shallow(deccfloat_t res, const deccfloat_t x, gr_ctx_t ctx)source
int _deccfloat_is_real(const deccfloat_t x)source
int _deccfloat_is_imaginary(const deccfloat_t x)source
int _deccfloat_is_finite(const deccfloat_t x)source
int _deccfloat_is_nan(const deccfloat_t x)source

Memory management, as for decfloat_init, and tests whether the imaginary part is zero, whether the real part is zero and the imaginary part nonzero, whether both parts are finite, and whether either part is NaN.

Cite this page

The FLINT team, “deccfloat_init, deccfloat_clear, deccfloat_swap, deccfloat_set_shallow, _deccfloat_is_real, _deccfloat_is_imaginary, _deccfloat_is_finite, _deccfloat_is_nan (decimal.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/decimal/deccfloat_init.html (generated 2026-10-20).