Message206172
And the Python 2 behaviour has been essentially unchanged for a long time:
Python 2.4.6 (#1, Nov 7 2013, 16:01:20)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> "%.f %.f" % (0.5, 1.5)
'0 2'
>>> round(0.5), round(1.5)
(1.0, 2.0)
(Though that first call just shows the result of whatever the OS C libraries decide to do, but historically that seems to be more likely to be round-half-to-even than anything else.) |
|
Date |
User |
Action |
Args |
2013-12-14 08:42:34 | mark.dickinson | set | recipients:
+ mark.dickinson, terry.reedy, eric.smith, r.david.murray, docs@python, Francis.Nimick, alexd2 |
2013-12-14 08:42:34 | mark.dickinson | set | messageid: <1387010554.1.0.0434731375302.issue17259@psf.upfronthosting.co.za> |
2013-12-14 08:42:34 | mark.dickinson | link | issue17259 messages |
2013-12-14 08:42:33 | mark.dickinson | create | |
|