FLINT3.7.0-dev

fmpz_set_d_2exp

Synopsis#include <flint/fmpz.h>
void fmpz_set_d_2exp(fmpz_t f, double d, slong exp)source

Sets f to d 2^{\mathit{exp}} rounded towards zero, so that 0.75 \cdot 2^0 gives 0.

Cite this page

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