Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ Float
Class
Float
example_code/item_050.py:236–238 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
234
print(
"Example 14"
)
235
try
:
236
class
Float:
237
def
__init__(self, value):
238
self.value = value
239
240
241
print(my_pretty(Float(5.678)))
Callers
1
item_050.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected