FLINT3.7.0-dev

radix_get_str_sum

Synopsis#include <flint/radix.h>
char * radix_get_str_sum(char * res, nn_srcptr x, slong n, int negative, int ascending, const radix_t radix)source

Returns (x, n) written as a sum over its limbs. For example, 12345678 in radix 10^3 is printed as 12 * 10^6 + 345 * 10^3 + 678 with negative and ascending both 0, and as -(678 + 345 * 10^3 + 12 * 10^6) with both 1. Memory as for radix_get_str_decimal.

Cite this page

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