FLINT3.7.0-dev

_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)source
int _deccfloat_add_exact(deccfloat_t res, const deccfloat_t x, const deccfloat_t y, int subtract, gr_ctx_t ctx)source
int _deccfloat_inv_exact(deccfloat_t res, const deccfloat_t x, gr_ctx_t ctx)source
int _deccfloat_pow_ui_exact(deccfloat_t res, const deccfloat_t x, ulong n, gr_ctx_t ctx)source
int _deccfloat_sqrt_exact(deccfloat_t res, const deccfloat_t x, gr_ctx_t ctx)source

Exact 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).