MCPcopy Create free account
hub / github.com/python/cpython / bindigits

Function bindigits

Modules/_decimal/tests/randdec.py:410–414  ·  view source on GitHub ↗
(prec)

Source from the content-addressed store, hash-verified

408
409# Tests for the 'logical' functions
410def bindigits(prec):
411 z = 0
412 for i in range(prec):
413 z += randrange(2) * 10**i
414 return z
415
416def logical_un_incr_digits(prec, itr):
417 if itr is None:

Callers 2

logical_un_incr_digitsFunction · 0.85
logical_bin_incr_digitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…