fmpq_get_str, _fmpq_get_str
Synopsis
#include <flint/fmpq.h>Write x in base b \in [2, 36] as "p/q", or as "p" if the denominator is 1. If str is NULL, a buffer is allocated with flint_malloc (to be freed with flint_free) and returned; otherwise str must have room for the digits of both components plus three characters, and is returned.
Cite this page
The FLINT team, “fmpq_get_str, _fmpq_get_str (fmpq.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq/fmpq_get_str.html (generated 2026-10-20).
@misc{flint-doc-fmpq-fmpq-get-str,
author = {{The FLINT team}},
title = {{fmpq\_get\_str, \_fmpq\_get\_str (fmpq.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq/fmpq_get_str.html},
note = {Generated 2026-10-20}
}