FLINT3.7.0-dev

acb_printn, acb_fprintn

Synopsis#include <flint/acb.h>
void acb_printn(const acb_t x, slong digits, ulong flags)source
void acb_fprintn(FILE * fp, const acb_t z, slong digits, ulong flags)source

Print x as a + b*I with the real and imaginary parts in the decimal ball format of arb_get_str (omitting a zero part), to standard output or to fp. The printed rectangle contains x, and the flags of arb_get_str apply to both parts. This is the recommended way to print a complex number.

Guides#

Cite this page

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