alexd2 added the comment:

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?

----------
nosy: +alexd2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17259>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to