FLINT3.7.0-dev

mag_get_d

Synopsis#include <flint/mag.h>
double mag_get_d(const mag_t x)source

Returns a double upper bound for x. The result is exact when the exponent of x lies in [-1000, 1000]; outside this range it is 2^{-1000} for small x and +\infty for large x.

Guides#

Cite this page

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