Skip to content

Commit 9dbde3b

Browse files
committed
Add link to the format specification mini-language
1 parent 1c8b8a9 commit 9dbde3b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/library/fractions.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,8 @@ another rational number, or from a string.
199199
function, or :ref:`Formatted string literals <f-strings>`. The
200200
presentation types ``"e"``, ``"E"``, ``"f"``, ``"F"``, ``"g"``, ``"G"``
201201
and ``"%"`` are supported. For these presentation types, formatting for a
202-
:class:`Fraction` object ``x`` behaves as though the object ``x`` were
203-
first converted to :class:`float` and then formatted using the float
204-
formatting rules, but avoids the loss of precision that might arise as a
205-
result of that conversion.
202+
:class:`Fraction` object ``x`` follows the rules outlined for
203+
the :class:`float` type in the :ref:`formatspec` section.
206204

207205
Here are some examples::
208206

0 commit comments

Comments
 (0)