Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-265894.py
File
recipe-265894.py
recipes/Python/265894_Floating_Point_Simulator/recipe-265894.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
prec = 8
# number of decimal digits (must be under 15)
2
3
class
F:
4
def
__init__(self, value, full=None):
Callers
nothing calls this directly
Calls
5
xrange
Class · 0.85
F
Class · 0.70
f
Function · 0.50
random
Method · 0.45
error
Method · 0.45
Tested by
no test coverage detected