Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustPython/RustPython
/ FloatLike
Class
FloatLike
Lib/test/test_math.py:223–228 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
221
return
None
222
223
class
FloatLike:
224
def
__init__(self, value):
225
self.value = value
226
227
def
__float__(self):
228
return
self.value
229
230
class
IntSubclass(int):
231
pass
Callers
6
testCeil
Method · 0.70
testFloor
Method · 0.70
testFsum
Method · 0.70
testHypot
Method · 0.70
testDist
Method · 0.70
test_trunc
Method · 0.70
Calls
no outgoing calls
Tested by
6
testCeil
Method · 0.56
testFloor
Method · 0.56
testFsum
Method · 0.56
testHypot
Method · 0.56
testDist
Method · 0.56
test_trunc
Method · 0.56