Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python/cpython
/ dot
Function
dot
Modules/_decimal/tests/randdec.py:67–69 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
65
return
str(randrange(10**maxprec))
66
67
def
dot():
68
if
randrange(2):
return
'.'
69
return
''
70
71
def
decimal_part(maxprec):
72
if
randrange(100) > 60:
# integers
Callers
3
plot
Function · 0.85
clockface
Function · 0.85
decimal_part
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected