Return the integer ratio as a tuple. Return a tuple of two integers, whose ratio is equal to the Fraction and with a positive denominator.
(self)
| 192 | return cls(*dec.as_integer_ratio()) |
| 193 | |
| 194 | def as_integer_ratio(self): |
| 195 | """Return the integer ratio as a tuple. |
| 196 | |
| 197 | Return a tuple of two integers, whose ratio is equal to the |
| 198 | Fraction and with a positive denominator. |
| 199 | """ |
| 200 | return (self._numerator, self._denominator) |
| 201 | |
| 202 | def limit_denominator(self, max_denominator=1000000): |
| 203 | """Closest Fraction to self with denominator at most max_denominator. |
no outgoing calls
no test coverage detected