FLINT3.7.0-dev

fmpz_sizeinbase

Synopsis#include <flint/fmpz.h>
size_t fmpz_sizeinbase(const fmpz_t f, int b)source

Returns the number of digits of |f| in base b, 2 \le b \le 62, and 1 for f = 0. Unlike GMP's mpz_sizeinbase, the result is exact for all bases.

Guides#

Cite this page

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