We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3de603 commit dc76383Copy full SHA for dc76383
Doc/library/stdtypes.rst
@@ -602,10 +602,8 @@ class`. In addition, it provides a few more methods:
602
603
.. method:: int.as_integer_ratio()
604
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.
+ Given an integer ``x``, ``x.as_integer_ratio()`` returns the tuple
+ ``(x, 1)``.
609
610
.. versionadded:: 3.8
611
0 commit comments