Kaydet (Commit) a3112d14 authored tarafından Mark Dickinson's avatar Mark Dickinson

Use // for floor division.

üst 5a633488
......@@ -104,9 +104,9 @@ class StrtodTests(unittest.TestCase):
# exact halfway cases with a small number of significant digits
for k in 0, 5, 10, 15, 20:
# upper = smallest integer >= 2**54/5**k
upper = -(-2**54/5**k)
upper = -(-2**54//5**k)
# lower = smallest odd number >= 2**53/5**k
lower = -(-2**53/5**k)
lower = -(-2**53//5**k)
if lower % 2 == 0:
lower += 1
for i in xrange(10 * TEST_SIZE):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment