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)sourcevoid deccfloat_clear(deccfloat_t res, gr_ctx_t ctx)sourcevoid deccfloat_swap(deccfloat_t x, deccfloat_t y, gr_ctx_t ctx)sourcevoid deccfloat_set_shallow(deccfloat_t res, const deccfloat_t x, gr_ctx_t ctx)sourceint _deccfloat_is_real(const deccfloat_t x)sourceint _deccfloat_is_imaginary(const deccfloat_t x)sourceint _deccfloat_is_finite(const deccfloat_t x)sourceint _deccfloat_is_nan(const deccfloat_t x)sourceMemory 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).
@misc{flint-doc-decimal-deccfloat-init,
author = {{The FLINT team}},
title = {{deccfloat\_init, deccfloat\_clear, deccfloat\_swap, deccfloat\_set\_shallow, \_deccfloat\_is\_real, \_deccfloat\_is\_imaginary, \_deccfloat\_is\_finite, \_deccfloat\_is\_nan (decimal.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/decimal/deccfloat_init.html},
note = {Generated 2026-10-20}
}