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.
Fraction
1 parent 7e3b3dc commit 478e414Copy full SHA for 478e414
Doc/library/fractions.rst
@@ -25,8 +25,8 @@ another rational number, or from a string.
25
26
The first version requires that *numerator* and *denominator* are instances
27
of :class:`numbers.Rational` and returns a new :class:`Fraction` instance
28
- with value equal to ``numerator/denominator`` where the denominator is positive.
29
- If *denominator* is ``0``, it raises a :exc:`ZeroDivisionError`.
+ with value ``numerator/denominator``. If *denominator* is ``0``, it
+ raises a :exc:`ZeroDivisionError`.
30
31
The second version requires that *number* is an instance of
32
:class:`numbers.Rational` or has the :meth:`!as_integer_ratio` method
0 commit comments