This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexd2
Recipients Francis.Nimick, alexd2, docs@python, eric.smith, mark.dickinson, r.david.murray, terry.reedy
Date 2013-12-08.11:01:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386500505.44.0.273518590993.issue17259@psf.upfronthosting.co.za>
In-reply-to
Content
I encountered the same inconsistent behavior. That is, I don't get the same rounding from the two following commands:

print "%.f %.f" %(0.5, 1.5)               # Gives --> 0 2
print "%.f %.f" %(round(0.5), round(1.5)) # Gives --> 1 2

I also get:
print round(0.5), round(1.5) # Gives --> 1.0 2.0

From what I read in the thread it seems to be more like a bug rather than something to just be documented, right?
History
Date User Action Args
2013-12-08 11:01:45alexd2setrecipients: + alexd2, terry.reedy, mark.dickinson, eric.smith, r.david.murray, docs@python, Francis.Nimick
2013-12-08 11:01:45alexd2setmessageid: <1386500505.44.0.273518590993.issue17259@psf.upfronthosting.co.za>
2013-12-08 11:01:45alexd2linkissue17259 messages
2013-12-08 11:01:45alexd2create