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

Function bin_close_numbers

Modules/_decimal/tests/randdec.py:276–285  ·  view source on GitHub ↗
(prec, emax, emin, itr=None)

Source from the content-addressed store, hash-verified

274 yield func(prec, emax, emin)
275
276def bin_close_numbers(prec, emax, emin, itr=None):
277 if itr is None:
278 itr = 1000
279 for _ in range(itr):
280 for func1 in close_funcs:
281 for func2 in close_funcs:
282 yield func1(prec, emax, emin), func2(prec, emax, emin)
283 for func in close_funcs:
284 yield randdec(prec, emax), func(prec, emax, emin)
285 yield func(prec, emax, emin), randdec(prec, emax)
286
287def tern_close_numbers(prec, emax, emin, itr):
288 if itr is None:

Callers 1

all_binaryFunction · 0.85

Calls 4

func1Function · 0.85
randdecFunction · 0.85
func2Function · 0.50
funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…