Home | History | Annotate | Download | only in test

Lines Matching refs:digits

107         # exact halfway cases with a small number of significant digits
118 # with small number of significant digits.
127 # until n * 2**p2 has more than 20 significant digits.
128 digits, exponent = n, e
129 while digits < 10**20:
130 s = '{}e{}'.format(digits, exponent)
133 s = '{}e{}'.format(digits * 10**40, exponent - 40)
135 digits *= 2
139 digits, exponent = n, e
140 while digits < 10**20:
141 s = '{}e{}'.format(digits, exponent)
144 s = '{}e{}'.format(digits * 10**40, exponent - 40)
146 digits *= 5
166 digits = m << e
170 digits = m * 5**-e
172 s = '{}e{}'.format(digits, exponent)
187 digits = n + random.randrange(-3*u, 3*u)
189 s = '{}e{}'.format(digits, exponent)
202 digits = base + random.randrange(-1000, 1000)
203 s = '{}e{}'.format(digits, exponent)
210 digits = random.randrange(dig10)
212 s = '{}e{}'.format(digits, exponent)
216 # make '0' more likely to be chosen than other digits
217 digits = '000000123456789'
226 s += ''.join(random.choice(digits) for _ in range(intpart_len))
230 s += ''.join(random.choice(digits)
238 s += ''.join(random.choice(digits)