_deccfloat_mul_exact, _deccfloat_add_exact, _deccfloat_inv_exact, _deccfloat_pow_ui_exact, _deccfloat_sqrt_exact
Synopsis
#include <flint/decimal.h>int _deccfloat_mul_exact(deccfloat_t res, const deccfloat_t x, const deccfloat_t y, gr_ctx_t ctx)sourceint _deccfloat_add_exact(deccfloat_t res, const deccfloat_t x, const deccfloat_t y, int subtract, gr_ctx_t ctx)sourceint _deccfloat_inv_exact(deccfloat_t res, const deccfloat_t x, gr_ctx_t ctx)sourceint _deccfloat_pow_ui_exact(deccfloat_t res, const deccfloat_t x, ulong n, gr_ctx_t ctx)sourceint _deccfloat_sqrt_exact(deccfloat_t res, const deccfloat_t x, gr_ctx_t ctx)sourceExact operations, returning GR_UNABLE when the result is not representable (or, for additions and powers, would be absurdly large).
Cite this page
The FLINT team, “_deccfloat_mul_exact, _deccfloat_add_exact, _deccfloat_inv_exact, _deccfloat_pow_ui_exact, _deccfloat_sqrt_exact (decimal.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/decimal/_deccfloat_mul_exact.html (generated 2026-10-20).
@misc{flint-doc-decimal-deccfloat-mul-exact,
author = {{The FLINT team}},
title = {{\_deccfloat\_mul\_exact, \_deccfloat\_add\_exact, \_deccfloat\_inv\_exact, \_deccfloat\_pow\_ui\_exact, \_deccfloat\_sqrt\_exact (decimal.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/decimal/_deccfloat_mul_exact.html},
note = {Generated 2026-10-20}
}