Message205539
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? |
|
Date |
User |
Action |
Args |
2013-12-08 11:01:45 | alexd2 | set | recipients:
+ alexd2, terry.reedy, mark.dickinson, eric.smith, r.david.murray, docs@python, Francis.Nimick |
2013-12-08 11:01:45 | alexd2 | set | messageid: <1386500505.44.0.273518590993.issue17259@psf.upfronthosting.co.za> |
2013-12-08 11:01:45 | alexd2 | link | issue17259 messages |
2013-12-08 11:01:45 | alexd2 | create | |
|