fmpq_set_str
Synopsis
#include <flint/fmpq.h>Like mpq_set_str, this function does not canonicalise: "2/4" gives the non-canonical 2/4, and "1/0" is accepted. Call fmpq_canonicalise afterwards if the input may not be in lowest terms.
Guides#
Cite this page
The FLINT team, “fmpq_set_str (fmpq.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq/fmpq_set_str.html (generated 2026-10-20).
@misc{flint-doc-fmpq-fmpq-set-str,
author = {{The FLINT team}},
title = {{fmpq\_set\_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_set_str.html},
note = {Generated 2026-10-20}
}