MCPcopy Index your code
hub / github.com/python/cpython / sign

Function sign

Modules/_decimal/tests/randdec.py:54–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
54def sign():
55 if randrange(2):
56 if randrange(2): return '+'
57 return ''
58 return '-'
59
60def indicator():
61 return "eE"[randrange(2)]

Callers 3

exponent_partFunction · 0.70
numeric_stringFunction · 0.70
rand_adjexpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…