FLINT3.7.0-dev

padic_radix_write

Synopsis#include <flint/padic_radix.h>
int padic_radix_write(gr_stream_t out, const padic_radix_t x, gr_ctx_t ctx)source

Writes x in the form (u) * p^v + O(p^N), omitting the power of p when v = 0 and the error term for exact elements, for example 188316833 + O(7^10). The unit is written by radix_get_str_sum, or as a decimal integer if the context has the flag PADIC_RADIX_DECIMAL. Strings of this form, including O(p^n), are accepted by gr_set_str.

Cite this page

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