self.assertEqual(round(-5.5), -6)
self.assertEqual(round(-6.5), -7)
+ # Issue #1869: integral floats should remain unchanged
+ self.assertEqual(round(5e15+1), 5e15+1)
+
# Check behavior on ints
self.assertEqual(round(0), 0)
self.assertEqual(round(8), 8)
Core and Builtins
-----------------
+- Issue #1869: fix a couple of minor round() issues. round(5e15+1)
+ was giving 5e15+2; round(-0.0) was losing the sign of the zero.
+
- Issue #5759: float() didn't call __float__ on str subclasses.
- Issue #5704: the "-3" command-line option now implies "-t".