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

Function nan

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

Source from the content-addressed store, hash-verified

91 return 'Inf'
92
93def nan():
94 d = ''
95 if randrange(2):
96 d = digits(randrange(99))
97 if randrange(2):
98 return ''.join(('NaN', d))
99 else:
100 return ''.join(('sNaN', d))
101
102def numeric_value(maxprec, maxexp):
103 if randrange(100) > 90:

Callers 1

numeric_stringFunction · 0.85

Calls 2

digitsFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected