]> granicus.if.org Git - python/commitdiff
Use // for floor division.
authorMark Dickinson <dickinsm@gmail.com>
Thu, 21 Jan 2010 19:58:41 +0000 (19:58 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Thu, 21 Jan 2010 19:58:41 +0000 (19:58 +0000)
Lib/test/test_strtod.py

index e5334997cfade8f61babf56e82d1162cc0403cf0..c7562669a0161532efdca56e0126fc8543ccdf82 100644 (file)
@@ -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):