Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ exponent_part
Function
exponent_part
Modules/_decimal/tests/randdec.py:86–87 ·
view source on GitHub ↗
(maxexp)
Source
from the content-addressed store, hash-verified
84
return
str(randrange(maxexp))
85
86
def
exponent_part(maxexp):
87
return
''
.join((indicator(), sign(), expdigits(maxexp)))
88
89
def
infinity():
90
if
randrange(2):
return
'Infinity'
Callers
1
numeric_value
Function · 0.85
Calls
4
indicator
Function · 0.85
expdigits
Function · 0.85
sign
Function · 0.70
join
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…