Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ as_integer_ratio
Method
as_integer_ratio
Lib/test/test_fractions.py:289–290 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
287
def
__init__(self, ratio):
288
self._ratio = ratio
289
def
as_integer_ratio(self):
290
return
self._ratio
291
292
293
class
FractionTest(unittest.TestCase):
Callers
3
test_as_integer_ratio
Method · 0.45
test_as_integer_ratio
Method · 0.45
test_floatasratio
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected