Skip to content

Commit dc76383

Browse files
skirpichevOTheDev
andauthored
Update Doc/library/stdtypes.rst
Co-authored-by: Owain Davies <[email protected]>
1 parent d3de603 commit dc76383

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/library/stdtypes.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,8 @@ class`. In addition, it provides a few more methods:
602602

603603
.. method:: int.as_integer_ratio()
604604

605-
Return a pair of integers whose ratio is equal to the original
606-
integer and with a positive denominator. The integer ratio of integers
607-
(whole numbers) is always the integer as the numerator and ``1`` as the
608-
denominator.
605+
Given an integer ``x``, ``x.as_integer_ratio()`` returns the tuple
606+
``(x, 1)``.
609607

610608
.. versionadded:: 3.8
611609

0 commit comments

Comments
 (0)