Home | History | Annotate | Download | only in test

Lines Matching refs:digits

108         # exact halfway cases with a small number of significant digits
119 # with small number of significant digits.
128 # until n * 2**p2 has more than 20 significant digits.
129 digits, exponent = n, e
130 while digits < 10**20:
131 s = '{}e{}'.format(digits, exponent)
134 s = '{}e{}'.format(digits * 10**40, exponent - 40)
136 digits *= 2
140 digits, exponent = n, e
141 while digits < 10**20:
142 s = '{}e{}'.format(digits, exponent)
145 s = '{}e{}'.format(digits * 10**40, exponent - 40)
147 digits *= 5
167 digits = m << e
171 digits = m * 5**-e
173 s = '{}e{}'.format(digits, exponent)
188 digits = n + random.randrange(-3*u, 3*u)
190 s = '{}e{}'.format(digits, exponent)
203 digits = base + random.randrange(-1000, 1000)
204 s = '{}e{}'.format(digits, exponent)
211 digits = random.randrange(dig10)
213 s = '{}e{}'.format(digits, exponent)
217 # make '0' more likely to be chosen than other digits
218 digits = '000000123456789'
227 s += ''.join(random.choice(digits) for _ in xrange(intpart_len))
231 s += ''.join(random.choice(digits)
239 s += ''.join(random.choice(digits)