FLINT3.7.0-dev

mag_print, mag_fprint

Synopsis#include <flint/mag.h>
void mag_print(const mag_t x)source
void mag_fprint(FILE * file, const mag_t x)source

Print the exact value of x as (man * 2^exp), with the mantissa as an integer, to standard output or to file. Zero and infinity are printed as (0) and (inf).

Cite this page

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