Home | History | Annotate | Download | only in tests

Lines Matching refs:digits

12     # exact halfway cases with a small number of significant digits
23 # with small number of significant digits.
32 # until n * 2**p2 has more than 20 significant digits.
33 digits, exponent = n, e
34 while digits < 10**20:
35 s = '{}e{}'.format(digits, exponent)
38 s = '{}e{}'.format(digits * 10**40, exponent - 40)
40 digits *= 2
44 digits, exponent = n, e
45 while digits < 10**20:
46 s = '{}e{}'.format(digits, exponent)
49 s = '{}e{}'.format(digits * 10**40, exponent - 40)
51 digits *= 5
72 digits = m << e
76 digits = m * 5**-e
78 s = '{}e{}'.format(digits, exponent)
94 digits = n + random.randrange(-3*u, 3*u)
96 s = '{}e{}'.format(digits, exponent)
109 digits = base + random.randrange(-1000, 1000)
110 s = '{}e{}'.format(digits, exponent)
117 digits = random.randrange(dig10)
119 s = '{}e{}'.format(digits, exponent)
123 # make '0' more likely to be chosen than other digits
124 digits = '000000123456789'
133 s += ''.join(random.choice(digits) for _ in range(intpart_len))
137 s += ''.join(random.choice(digits)
145 s += ''.join(random.choice(digits)