FLINT3.7.0-dev

fmpz_get_d_2exp

Synopsis#include <flint/fmpz.h>
double fmpz_get_d_2exp(slong * exp, const fmpz_t f)source

Returns a double d with 0.5 \le |d| < 1 and sets *exp to e such that d 2^e approximates f; d is f 2^{-e} truncated to 53 bits. For f = 0 it returns 0 and sets *exp to 0.

Guides#

Cite this page

The FLINT team, “fmpz_get_d_2exp (fmpz.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz/fmpz_get_d_2exp.html (generated 2026-10-20).