From: Mark Dickinson Date: Thu, 21 Jan 2010 19:58:41 +0000 (+0000) Subject: Use // for floor division. X-Git-Tag: v2.7a3~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3112d146208d6db0dbb7abd50368a4ff6afe54c;p=python Use // for floor division. --- diff --git a/Lib/test/test_strtod.py b/Lib/test/test_strtod.py index e5334997cf..c7562669a0 100644 --- a/Lib/test/test_strtod.py +++ b/Lib/test/test_strtod.py @@ -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):