Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ TestTrunc
Class
TestTrunc
Lib/test/test_math.py:1968–1970 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1966
self.assertEqual(math.trunc(-100.999), -100)
1967
1968
class
TestTrunc:
1969
def
__trunc__(self):
1970
return
23
1971
class
FloatTrunc(float):
1972
def
__trunc__(self):
1973
return
23
Callers
1
test_trunc
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_trunc
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…