MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / Fraction

Class Fraction

Lib/fractions.py:44–605  ·  view source on GitHub ↗

This class implements rational numbers. In the two-argument form of the constructor, Fraction(8, 6) will produce a rational number equivalent to 4/3. Both arguments must be Rational. The numerator defaults to 0 and the denominator defaults to 1 so that Fraction(3) == 3 and Fraction(

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

limit_denominatorMethod · 0.85
_addMethod · 0.85
_subMethod · 0.85
_mulMethod · 0.85
_divMethod · 0.85
__pow__Method · 0.85
__rpow__Method · 0.85
__pos__Method · 0.85
__neg__Method · 0.85
__abs__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected