FLINT3.7.0-dev

arf_mag_set_ulp

Synopsis#include <flint/arf.h>
void arf_mag_set_ulp(mag_t z, const arf_t y, slong prec)source

Sets z to 2^{e - \mathit{prec}}, where e is the exponent of y (2^{e-1} \le |y| < 2^e): one unit in the last place of a prec-bit number of the size of y. Raises an exception for a special y.

Cite this page

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