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 ed48fb7 commit c575b47Copy full SHA for c575b47
Lib/numbers.py
@@ -297,11 +297,13 @@ class Rational(Real):
297
@property
298
@abstractmethod
299
def numerator(self):
300
+ """The numerator of a rational number in lowest terms."""
301
raise NotImplementedError
302
303
304
305
def denominator(self):
306
+ """The (positive) denominator of a rational number in lowest terms."""
307
308
309
# Concrete implementation of Real's conversion to float.
0 commit comments